The adaptive extension and background compensation based reflection ball
light spot centroid positioning method of the present application comprises the following steps: S1, obtaining a gray scale image containing a reflection ball
light spot; S2, using a fixed threshold segmentation method to binarize the gray scale image to obtain a
binary image; S3, extracting the contour of an initial
light spot region in the
binary image and determining its minimum circumscribed rectangle as an initial ROI; S4, performing adaptive extension
processing on each boundary of the initial ROI to obtain a target ROI; S5, based on the target ROI, using a background compensation
centroid method to calculate the center coordinates of the reflection ball light spot. The method of the present application overcomes the limitations of traditional fixed threshold segmentation, significantly improves the stability and accuracy of light spot positioning under complex imaging conditions, and is close to the
Gaussian fitting method in positioning accuracy, while being significantly superior to
Gaussian fitting in calculation speed, maintaining the high efficiency comparable to the classical gray scale
centroid method, and taking into account the excellent characteristics of high accuracy and high real-time performance.