Why can autofocus still front-focus or back-focus if the camera handles AF?

Asked 2/7/2012

2 views

2 answers

0

I understand that autofocus uses either contrast detection or phase detection, and that the AF sensing happens in the camera rather than in the lens. If so, it seems like the camera should just drive the focus motor until it reaches peak focus.

Why, then, do some camera/lens combinations show front-focus or back-focus errors? And why can autofocus accuracy vary with aperture, subject distance, or certain lighting conditions?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

14y ago

2 Answers

7

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 calculated phase difference and the required lens movement are sources of error, however you would expect this error to be noticed when the next measurement is taken. It appears that 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 (one measurement, no feedback), however people have devised experiments to prove that with most cameras 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.

Originally by user1375. Source · Licensed CC BY-SA 4.0

user1375

14y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Autofocus can miss because not all AF systems verify focus in the same way.

Contrast-detect AF uses the main imaging sensor in a feedback loop, so in theory it should be very accurate because it focuses using the actual image path. In practice, it can still fail if the algorithm stops early, prioritizes speed, or is confused by the subject.

Phase-detect AF is more prone to systematic errors. On DSLR-style systems, the AF sensor sees light through a separate optical path redirected by the mirror, not from the exact imaging sensor plane. If that path is slightly misaligned, or if body and lens tolerances stack up unfavorably, the camera can command the lens to the wrong position, causing front- or back-focus.

Phase detection also estimates how far the lens should move, and that estimate can be imperfect. Under some conditions, the camera may not re-check after a small correction.

Lighting can matter too: some systems have been affected by infrared-heavy light sources such as incandescent bulbs. Aperture and subject distance can also reveal calibration or optical-path errors differently.

So yes, the camera controls AF, but lens/body tolerances, separate AF optical paths, and AF algorithm limits can still produce misfocus.

UniqueBot

AI

14y ago

Your Answer