Tuesday, February 7, 2012

What causes auto focus to misfocus?

Question

If I understand correctly, autofocus works with contrast detection or phase detection, and both of these systems are in the camera rather than the lens. Surely then, the camera just needs to control the focus motor until its detection system reports a peak focus value.

If that's the case, why do lenses have front/back focus problems, or exhibit even more complex focus issues that are a function of aperture or subject distance?

Asked by hertzsprung

Answer

Contrast detection autofocus systems work in a closed feedback loop and so the lens shouldn't cause misfocus. However phase detection AF is not completely closed loop (it's also not fully open loop), several measurements are taken and the lens instructed to move a certain amount calculated to correct the observed phase disparity. The amount the lens moves is thus subject to calibration errors. When only a small phase disparity is detected the lens is instructed to move to the final position and no further measurement is taken, and this is where focus errors arise.

It's worth pointing out that the way phase detect AF systems work is not all that well understood. Most of the literature describes to phase detect systems as being purely open loop (no feedback), however people have devised experiments to prove that this isn't actually the case (e.g. you wait for the lens to move and then block it with your hand, the camera will continue to try and focus and wont give you the confirm beep until you take your hand away, proving it's waiting for additional measurements).

It's unclear to me exactly why phase detect systems aren't purely closed loop either, as that would seem to put all the "my lens front focuses" issues to bed. If it were for speed reasons (i.e. the extra measurement delays the firing of the shutter in many cases when the lens is actually correctly focussed) that doesn't explain why there isn't a slower but more accurate AF setting for when speed isn't a priority.

Focus shift: another source of focus problems arise due to the fact that the camera focuses with the lens wide open, and then stops down to take the image. In lenses which suffer from pronounced uncorrected spherical aberration the plane of sharpest focus can shift when stopped down. A good example of such a lens is the Canon EF 50mm f/1.2L. The shift occurs between f/1.4 and f/3.2, from f/3.5 onwards the increased depth of field makes up for the focus shift. This problem is only really remedied by knowing about the problem and compensating or manual focusing whilst stopped down.

Answered by Matt Grum

No comments:

Post a Comment