The invention relates to a method and a device for automatically restoring, measuring and classifying steel
dimple images. The device comprises an image acquiring
system, an image pretreating part, an image restoring part, an image analyzing part, etc. The image pretreating part is used for performing
median filter noise removal and
gray level correction on original images acquired by the image acquiring
system; the image restoring part is used for performing
binary segmentation by using an adaptive fuzzy threshold valve method; boundary deletion and holes in the obtained binary images are processed respectively by using an ultra-
erosion and layer-by-layer expansion method and an improved scanning line seed filling
algorithm; the image analyzing part is used for performing region calibration on the processed images and setting the
dimple diameter as the
diameter of the minimum circumcircle of the
dimple; and a random dimple region area
algorithm is used to measure the dimple area so as to obtain the dimple
diameter. After measurement, the measured classification results are output. The invention has the advantages of accuracy, efficiency and convenience, and can be popularized and applied in fracture measurement, analysis and classification with complex backgrounds and shapes in the material filed.