Autofocus: contrast detection

Applet: Nora Willett

Text: Marc Levoy

Technical assistance: Andrew Adams


In the preceeding applet we considered active and passive methods of autofocusing a camera, and we studied in detail the phase detection method commonly used in single-lens reflex (SLR) cameras. In this applet we consider contrast detection, another passive autofocus method. This method is commonly used in point-and-shoot cameras and some cell phone cameras - those with movable lenses. Contrast detection is also used in SLR cameras when they are in Live preview mode (called "Live View" on Canon cameras). In this mode the reflex mirror is flipped up, thereby disabling the autofocus module, so only the main sensor is available to help the camera focus, and contrast detection must be used.