Optimal algorithm for determining focus error

Thursday, 27 October, 2011


University of Texas at Austin researchers have discovered how to extract and use information in an individual image to determine how far objects are from the focus distance, a feat only accomplished by human and animal visual systems until now.

Like a camera, the human eye has an autofocusing system, but human autofocusing rarely makes mistakes. And unlike a camera, humans do not require trial and error to focus an object.

Johannes Burge, a postdoctoral fellow in the College of Liberal Arts’ Center for Perceptual Systems and co-author of the study, says it is significant that a statistical algorithm can now determine focus error, which indicates how much a lens needs to be refocused to make the image sharp, from a single image without trial and error.

“Our research on defocus estimation could deepen our understanding of human depth perception,” Burge says. “Our results could also improve autofocusing in digital cameras. We used basic optical modelling and well-understood statistics to show that there is information lurking in images that cameras have yet to tap.”

The researchers’ algorithm can be applied to any blurry image to determine focus error. An estimate of focus error also makes it possible to determine how far objects are from the focus distance.

In the human eye, inevitable defects in the lens, such as astigmatism, can help the visual system (via the retina and brain) compute focus error; the defects enrich the pattern of ‘defocus blur’, the blur that is caused when a lens is focused at the wrong distance. Humans use defocus blur to both estimate depth and refocus their eyes. Many small animals use defocus as their primary depth cue.

“We are now one step closer to understanding how these feats are accomplished,” says Wilson Geisler, Director of the Center for Perceptual Systems and coauthor of the study. “The pattern of blur introduced by focus errors, along with the statistical regularities of natural images, makes this possible.”

Burge and Geisler considered what happens to images as focus error increases: an increasing amount of detail is lost with larger errors. Then, they noted that even though the content of images varies considerably (eg, faces, mountains, flowers), the pattern and amount of detail in images is remarkably constant. This constancy makes it possible to determine the amount of defocus and, in turn, to re-focus appropriately.

Their article, titled Optimal defocus estimation in individual natural images, will be published in the Proceedings of the National Academy of Sciences. The research was supported by a grant from the National Institutes of Health.

The Center for Perceptual Systems is an integrated program that overlaps several separate departments: Neuroscience, Psychology, Electrical and Computer Engineering, Neurobiology, Computer Science, and Speech and Communication.

Related Articles

Scientists unveil genomic 'tree of life' for flowering plants

The genomic tree sheds new light on the evolutionary history of flowering plants and their rise...

Found: the most massive stellar black hole in the Milky Way

With a mass 33 times that of the Sun, and based a mere 1926 light-years away, Gaia BH3 is the...

Astronauts will soon grow plants on the Moon

When humans take their first steps back on the Moon after 50 years during the Artemis III...


  • All content Copyright © 2024 Westwick-Farrow Pty Ltd