Patent attributes
A refined autofocus method provides optimized lighting between iterative autofocus operations, to reliably provide the best possible autofocus Z-height precision. The method includes a quantitative initial focus Z-height determination based on initial focus curve data from initial autofocus images acquired using initial light control parameters. Then, the camera is set at that initial focus Z-height such that well focused images are provided. Refined (optimized) light control parameters are then determined based on at least one respective image acquired using respective light control parameters at that Z-height, such that an image acquired using the refined light control parameters provides a near-optimum value for a contrast-related metric (e.g., a focus metric) at that Z-height. Then, refined autofocus images are acquired using the refined light control parameters and a refined precise Z-height is quantitatively determined base on the resulting focus curve.