This invention relates to a method for recovering and clustering optical stripes based on restricted
region growing, belonging to the field of
computer vision measurement technology. The method includes the following steps: Step 1: Obtaining stripe projection images of the object under test after segmentation of the
region of interest (ROI) from two camera
viewpoints; Step 2: Obtaining binary stripe images; Step 3: Extracting the stripe center lines from the binary stripe images through
connected component analysis to obtain the seed point coordinates of each stripe; Step 4: Obtaining stripe point coordinate data; Step 5: Calculating the
centroid coordinates of the stripes based on the stripe point coordinate data recovered in Step 4, and
numbering the stripes in the left and right views; Step 6: Comparing the number of stripes in the left and right views. If they do not match, the
radius of the
region growing is increased, and Steps 4 and 5 are repeated until the number of stripes in the left and right views matches. This invention effectively addresses the problems of
noise, breakage, and deformation in optical stripe images, avoiding the problem of mismatched multi-line
laser stripes.