Some studies on the analysis of surface quality of flat metal surfaces using image processing techniques