Optimal defocus estimates from individual images for autofocusing a digital camera

Recently, we developed a method for optimally estimating focus error given a set of natural scenes, a waveoptics model of the lens system, a sensor array, and a specification of measurement noise. The method is based on first principles and can be tailored to any vision system for which these properties can be characterized. Here, the method is used to estimate defocus in local areas of images (64x64 pixels) formed in a Nikon D700 digital camera fitted with a 50mm Sigma prime lens. Performance is excellent. Defocus magnitude and sign can be estimated with high precision and accuracy over a wide range. The method takes an integrative approach that accounts for natural scene statistics and capitalizes (but not does depend exclusively) on chromatic aberrations. Although chromatic aberrations are greatly reduced in achromatic lenses, we show that there are sufficient residual chromatic aberrations in a high-quality prime lens for our method to achieve good performance. Our method has the advantages of both phase-detection and contrastmeasurement autofocus techniques, without their disadvantages. Like phase detection, the method provides point estimates of defocus (magnitude and sign), but unlike phase detection, it does not require specialized hardware. Like contrast measurement, the method is image-based and can operate in "Live View" mode, but unlike contrast measurement, it does not require an iterative search for best focus. The proposed approach could be used to develop improved autofocus algorithms for digital imaging and video systems.

[1]  Johannes Burge,et al.  Optimal defocus estimation in individual natural images , 2011, Proceedings of the National Academy of Sciences.

[2]  Steven W. Zucker,et al.  Local Scale Control for Edge Detection and Blur Estimation , 1996, ECCV.

[3]  Jiri Najemnik,et al.  Optimal stimulus encoders for natural tasks. , 2009, Journal of vision.

[4]  D I Flitcroft,et al.  A neural and computational model for the chromatic control of accommodation , 1990, Visual Neuroscience.

[5]  A. Stockman,et al.  The spectral sensitivities of the middle- and long-wavelength-sensitive cones derived from measurements in observers of known genotype , 2000, Vision Research.

[6]  Austin Roorda,et al.  Monochromatic aberrations provide an odd-error cue to focus direction. , 2002, Journal of the Optical Society of America. A, Optics, image science, and vision.

[7]  Samuel T. Thurman OTF Estimation Using a Siemens Star Target , 2011 .

[8]  Shree K. Nayar,et al.  Rational Filters for Passive Depth from Defocus , 1998, International Journal of Computer Vision.

[9]  A. Bradley,et al.  Accuracy and precision of objective refraction from wavefront aberrations. , 2004, Journal of vision.

[10]  Frédo Durand,et al.  Image and depth from a conventional camera with a coded aperture , 2007, SIGGRAPH 2007.

[11]  J. Goodman Introduction to Fourier optics , 1969 .

[12]  Stephen Lin,et al.  Coded aperture pairs for depth from defocus , 2009, 2009 IEEE 12th International Conference on Computer Vision.

[13]  Alex Pentland,et al.  Simple range cameras based on focal error , 1994 .

[14]  Wilson S Geisler,et al.  Region grouping in natural foliage scenes: image statistics and human performance. , 2010, Journal of vision.

[15]  A. Bradley,et al.  The chromatic eye: a new reduced-eye model of ocular chromatic aberration in humans. , 1992, Applied optics.