Evaluation of surface roughness by vision system