Dual Autofocusing Algorithm for Optical Lens Measurement System

Zhenjiu Zhang,Hong Hu
DOI: https://doi.org/10.1117/12.887304
2010-01-01
Abstract:In order to develop an on-line optical lens measurement system, a dual autofocusing algorithm consisting of coarse autofocusing and fine autofocusing is proposed to realize the accurate and automatic image grabbing. In the procedure of coarse autofocusing, variance function on the whole image is selected as sharpness evaluation function (SEF), and mean comparison method is applied to realize the hill-climbing algorithm for focal plane searching. A 3-point method is used to initialize the searching direction. In the procedure of fine autofocusing, a conditional dilation method based on mathematical morphology is used to extract the region of interest (ROI), namely, the target images, and a shape factor is employed to eliminate the disturbance regions. Brenner function within ROI is selected as SEF, and single-point comparison method is used to find the focal plane accurately. Compared to the traditional methods, this dual autofocusing algorithm not only can realize high precision focusing, but also has large autofocusing range. The experiment results show that the dual autofocusing technique can guarantee that the focusing position locates in the depth of field. The proposed algorithm is suitable for the on-line optical lens measurement.
What problem does this paper attempt to address?