Publication Date

2021

Journal or Book Title

Optics Express

Abstract

We propose a fast and accurate autofbcus algorithm using Gaussian standard deviation and gradient-based binning. Rather than iteratively searching for the optimal focus using an optimization process, the proposed algorithm directly calculates the mean of the Gaussian shaped focus measure (FM) curve to find the optimal focus location and uses the FM curve standard deviation to adapt the motion step size. The calculation only requires 3-4 defocused images to identify the center location of the FM curve. Furthermore, by assigning motion step sizes based on the FM curve standard deviation, the magnitude of the motion step is adaptively controlled according to the defocused measure, thus avoiding overshoot and unneeded image processing. Our experiment verified the proposed method is faster than the state-of-the-art Adaptive Hill-Climbing (AHC) and offers satisfactory accuracy as measured by root-mean-square error. The proposed method requires 80% fewer images for focusing compared to the AHC method. Moreover, due to this significant reduction in image processing, the proposed method reduces autofbcus time to completion by 22% compared to the AHC method. Similar performance of the proposed method was observed in both well-lit and low-lighting conditions. (C) 2021 Optical Society of America under the terms of the OSA Open Access Publishing Agreement

ISSN

1094-4087

DOI

https://doi.org/10.1364/oe.425118

Volume

29

Issue

13

License

UMass Amherst Open Access Policy

Creative Commons License

Creative Commons Attribution 4.0 License
This work is licensed under a Creative Commons Attribution 4.0 License.

Funder

Directorate for EngineeringNational Science Foundation (NSF)NSF - Directorate for Engineering (ENG) [CMMI-1916866, CMMI-1942185]

Share

COinS