Skip to main content
Log in

Efficient Focus Sampling Through Depth-of-Field Calibration

  • Published:
International Journal of Computer Vision Aims and scope Submit manuscript

Abstract

Due to the limited depth-of-field (DOF) of conventional digital cameras, only the objects within a certain distance range from the camera are in focus. Objects outside the DOF are observed with different amounts of defocus depending on their position. Focus sampling consists of capturing different images of the same scene by changing the focus configuration of the camera in order to alternately bring objects at different depths into focus. Focus sampling is an important part of different focus-related applications such as autofocus, focus stacking and depth estimation. This work proposes a calibration procedure for modeling the depth-of-field of conventional cameras in order to perform an efficient focus sampling. The method is simple in terms of repeatability and can be easily implemented in different imaging devices. Experimental tests are presented in order to illustrate the effectiveness of the proposed approach in autofocus. Results demonstrate that a significant reduction in the number of frames required to capture during autofocusing can be achieved by means of the proposed methodology.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

Notes

  1. In a compound lens system, \(f\) corresponds to the effective focal length of the system.

  2. In the perspective projection model, this product is also referred to as focal length. It should not be confused with the lens focal length, which describes the power of the optics and determines the behavior of focus. In this paper, the term focal length refers to the lens focal length.

  3. The line spread function is the analytical response of an optical system to a step edge.

  4. This distance is often referred to as hyperfocal distance.

  5. Hill-climbing and rule-based search were not included due to their dependence on different heuristic parameters. These parameters depend on the sampling step and, hence, would not allow an objective comparison.

References

  • Aggarwal, M., & Ahuja, N. (2002). A pupil-centric model of image formation. International Journal of Computer Vision, 48(3), 195–214.

    Article  MATH  Google Scholar 

  • Aguet, F., Van De Ville, D., & Unser, M. (2008). Model-based 2.5-D deconvolution for extended depth of field in brightfield microscopy. IEEE Transactions on Image Processing, 17(7), 1144–1153.

    Article  MathSciNet  Google Scholar 

  • Almeida, M., & Almeida, L. (2010). Blind and semi-blind deblurring of natural images. IEEE Transactions on Image Processing, 19(1), 36–52.

    Article  MathSciNet  Google Scholar 

  • Baba, M., Asada, N., & Oda, A. (2001). Depth from blur by zooming. In Proceedings of the Annual Conference on Vision Interface (p. 165–172).

  • Baba, M., Asada, N., Oda, A., & Migita, T. (2002). A thin lens based camera model for depth estimation from defocus and translation by zooming. In Proceedings of the International Conference on Vision Interface (p. 274–281).

  • Bae, S., & Durand, F. (2007). Defocus magnification. Computer Graphics Forum, 26, 571–579.

    Article  Google Scholar 

  • Bass, M. (2010). Handbood of optics (3rd ed., Vol. 1)., Geometrical and physical optics, polarized light, components and instruments New York: McGraw-Hill.

    Google Scholar 

  • Born, M., & Wolf, E. (1999). Principles of optics (7th ed.). Cambridge: Cambridge University Press.

    Book  Google Scholar 

  • Darrell, T., & Wohn, K. (1988). Pyramid based depth from focus. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (p. 504–509).

  • de Angelis, M., Nicola, S. D., Ferraro, P., Finizio, A., Pierattini, G., & Hessler, T. (1999). An interferometric method for measuring short focal length refractive lenses and diffractive lenses. Optics Communications, 160(1–3), 5–9.

    Article  Google Scholar 

  • Denton, M. B. (2000). Further developments in scientific optical imaging. Cambridge: Royal Society of Chemistry.

    Book  Google Scholar 

  • Deschênes, F., Ziou, D., & Fuchs, P. (2004). An unified approach for a simultaneous and cooperative estimation of defocus blur and spatial shifts. Image and Vision Computing, 22(1), 35–57.

    Article  Google Scholar 

  • Edmund Optics (2012). Gauging depth of field in your imaging system. [online 20/09/2012] http://www.edmundoptics.com/technical-resources-center/testing-targets/gauging-depth-of-field-in-your-imaging-system/

  • Elder, J., & Zucker, S. (1998). Local scale control for edge detection and blur estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(7), 699–716.

    Article  Google Scholar 

  • Favaro, P. (2007). Shape from focus and defocus: Convexity, quasiconvexity and defocus-invariant textures. In Proceedings of the IEEE International Conference on Computer Vision (p. 1–7).

  • Fleming, D. (2012). Depth of field calculator. [online 20/09/2012] http://www.dofmaster.com/dofjs.html

  • Fujita, H., Tsai, D.-Y., Itoh, T., Doi, K., Morishita, J., Ueda, K., et al. (1992). A simple method for determining the modulation transfer function in digital radiography. IEEE Transactions on Medical Imaging, 11(1), 34–39.

    Article  Google Scholar 

  • Hasinoff, S., & Kutulakos, K. (2011). Light-efficient photography. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(11), 2203–2214.

    Article  Google Scholar 

  • Hasinoff, S.W., Kutulakos, K.N., Durand, F., & Freeman, W.T. (2009). Time-constrained photography. In Proceedings of the IEEE International Conference on Computer Vision (p. 333–340).

  • Heikkila, J., & Silven, O. (1997). A four-step camera calibration procedure with implicit image correction. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (p. 1106–1112).

  • Horn, B. K. P. (1990). Robot vision (6th ed.). Auckland: MIT Press.

    Google Scholar 

  • Hornberg, A. (2006). Handbook of machine vision. Weinheim: Wiley.

    Book  Google Scholar 

  • Joshi, N., Szeliski, R., & Kriegman, D. (2008). PSF estimation using sharp edge prediction. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition.

  • Judy, P. F. (1976). The line spread function and modulation transfer function of a computed tomographic scanner. Medical Physics, 3, 233–236.

    Article  Google Scholar 

  • Kayargadde, V., & Martens, J.-B. (1996). Estimation of perceived image blur using edge features. International Journal of Imaging Systems and Technology, 7(2), 102–109.

    Article  Google Scholar 

  • Lei, F., & Dang, L. K. (1994). Measuring the focal length of optical systems by grating shearing interferometry. Applied Optics, 33(28), 6603–6608.

    Article  Google Scholar 

  • Muhammad, M., & Choi, T. S. (2012). Sampling for shape from focus in optical microscopy. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(3), 564–573.

    Article  Google Scholar 

  • Nair, H., & Stewart, C. (1992). Robust focus ranging. In Proceedings of the IEEE Conference on Computer Vision Pattern Recognition (p. 309–314).

  • Pentland, A. P. (1987). A new sense for depth of field. IEEE Transactions on Pattern Analysis and Machine Intelligence, 9(4), 523–531.

    Article  Google Scholar 

  • Pertuz, S., Puig, D., Garcia, M., & Fusiello, A. (2013a). Generation of all-in-focus images by noise-robust selective fusion of limited depth-of-field images. IEEE Transactions on Image Processing, 22(3), 1242–1251.

    Article  MathSciNet  Google Scholar 

  • Pertuz, S., Puig, D., & Garcia, M. A. (2010). Improving shape from focus by compensating for image magnification shift. In Proceedings of the International Conference on Pattern Recognition.

  • Pertuz, S., Puig, D., & Garcia, M. A. (2013b). Analysis of focus measure operators for shape-from-focus. Pattern Recognition, 46(5), 1415–1432.

    Article  MATH  Google Scholar 

  • Pollefeys, M., Koch, R., & Gool, L. V. (1999). Self-calibration and metric reconstruction inspite of varying and unknown intrinsic camera parameters. International Journal of Computer Vision, 32(1), 7–25.

    Article  Google Scholar 

  • Samei, E., Flynn, M. J., & Reimann, D. A. (1998). A method for measuring the presampled MTF of digital radiographic systems using an edge test device. Medical Physics, 25(1), 102–113.

    Article  Google Scholar 

  • Subbarao, M., & Gurumoorthy, N. (1988). Depth recovery from blurred edges. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (p. 498–503).

  • Szeliski, R. (2011). Computer vision: Algorithms and applications. New York: Springer.

    Book  Google Scholar 

  • Tay, C., Thakur, M., Chen, L., & Shakher, C. (2005). Measurement of focal length of lens using phase shifting Lau phase interferometry. Optics Communications, 248(4–6), 339–345.

    Article  Google Scholar 

  • Tsai, D. C., & Chen, H. (2012). Reciprocal focus profile. IEEE Transactions on Image Processing, 21(2), 459–468.

    Article  MathSciNet  Google Scholar 

  • Tsai, D. C., Tsai, Z.-M., & Chen, H. (2013). A simulation model for continuous autofocus design. IEEE Transactions on Consumer Electronics, 59(4), 731–737.

    Article  MathSciNet  Google Scholar 

  • Vaquero, D., Gelfand, N., Tico, M., Pulli, K., & Turk, M. (2011). Generalized autofocus. In IEEE Workshop on Applications of Computer Vision (p. 511–518).

  • Watanabe, M., & Nayar, S. (1995). Telecentric optics for constant magnification imaging. Technical report, Dept. of Computer Science. New York: Columbia University.

  • Watanabe, M., & Nayar, S. K. (1998). Rational filters for passive depth from defocus. International Journal of Computer Vision, 27, 203–225.

    Article  Google Scholar 

  • Willson, R. G. (1994). Modeling and calibration of automated zoom lenses. PhD thesis, Carnegie Mellon University, Pittsburgh.

  • Wu, S., & Xie, S. (2009). An efficient blind method for image quality measurement. In International Conference on Information, Communications and Signal Processing (p. 1–5).

  • Yousefi, S., Rahman, M., & Kehtarnavaz, N. (2011). A new auto-focus sharpness function for digital and smart-phone cameras. IEEE Transactions on Consumer Electronics, 57(3), 1003–1009.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Said Pertuz.

Additional information

Communicated by M. Hebert.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Pertuz, S., Garcia, M.A. & Puig, D. Efficient Focus Sampling Through Depth-of-Field Calibration. Int J Comput Vis 112, 342–353 (2015). https://doi.org/10.1007/s11263-014-0770-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11263-014-0770-0

Keywords

Navigation