Passive AF systems determine correct focus by performing passive analysis of the image that is entering the optical system. They generally do not direct any energy, such as ultrasonic sound or infrared light waves, toward the subject. (However, an autofocus assist beam of usually infrared light is required when there is not enough light to take passive measurements.) Passive autofocusing can be achieved by phase detection or contrast measurement.
Phase detection Phase detection (PD) is achieved by dividing the incoming light into pairs of images and comparing them.
Through-the-lens secondary image registration (
TTL SIR) passive phase detection is often used in film and digital
SLR cameras. The system uses a
beam splitter (implemented as a small semi-transparent area of the main reflex mirror, coupled with a small secondary mirror) to direct light to an AF sensor at the bottom of the camera. Two micro-lenses capture the light rays coming from the opposite sides of the lens and divert it to the AF sensor, creating a simple
rangefinder with a base within the lens's diameter. The two images are then analysed for similar light intensity patterns (peaks and valleys) and the separation error is calculated in order to find whether the object is in front focus or back focus position. This gives the direction and an estimate of the required amount of focus-ring movement. PD AF in a continuously focusing mode (e.g. "AI Servo" for
Canon, "AF-C" for
Nikon,
Pentax and
Sony) is a
closed-loop control process. PD AF in a focus-locking mode (e.g. "One-Shot" for
Canon, "AF-S" for
Nikon and
Sony) is widely believed to be a "one measurement, one movement"
open-loop control process, but focus is confirmed only when the AF sensor sees an in-focus subject. The only apparent differences between the two modes are that a focus-locking mode halts on focus confirmation, and a continuously focusing mode has predictive elements to work with moving targets, which suggests they are the same closed-loop process. Although AF sensors are typically one-dimensional photosensitive strips (only a few pixels high and a few dozen wide), some modern cameras (
Canon EOS-1V,
Canon EOS-1D,
Nikon D2X) feature TTL area SIR sensors that are rectangular in shape and provide two-dimensional intensity patterns for a finer-grain analysis. Cross-type focus points have a pair of sensors oriented at 90° to one another, although one sensor typically requires a larger aperture to operate than the other. Some cameras (
Minolta 7,
Canon EOS-1V,
1D,
30D/
40D,
Pentax K-1,
Sony DSLR-A700,
DSLR-A850,
DSLR-A900) also have a few "high-precision" focus points with an additional set of prisms and sensors; they are only active with "
fast lenses" with certain geometrical
apertures (typically
f-number 2.8 and faster). Extended precision comes from the wider effective measurement base of the "range finder" Some modern sensors (for example one in
Librem 5) include about 2% phase detection pixels on the chip. With suitable software support, that enables phase detection auto focus.
Contrast detection Contrast-detection autofocus is achieved by measuring
contrast (vision) within a sensor field
through the lens. The intensity difference between adjacent pixels of the sensor naturally increases with correct image focus. The optical system can thereby be adjusted until the maximal contrast is detected. In this method, AF does not involve actual distance measurement at all. This creates significant challenges when
tracking moving subjects, since a loss of contrast gives no indication of the direction of motion towards or away from the camera. Contrast-detect autofocus is a common method in
digital cameras that lack
shutters and reflex mirrors. Most
DSLRs use this method (or a hybrid of both contrast and phase-detection autofocus) when focusing in their
live-view modes. A notable exception is Canon digital cameras with Dual Pixel CMOS AF.
Mirrorless interchangeable-lens cameras typically used contrast-measurement autofocus, although phase detection has become the norm on most mirrorless cameras giving them significantly better AF tracking performance compared to contrast detection. Contrast detection places different constraints on lens design when compared with phase detection. While phase detection requires the lens to move its focus point quickly and directly to a new position, contrast-detection autofocus instead employs lenses that can quickly sweep through the focal range, stopping precisely at the point where maximal contrast is detected. This means that lenses designed for phase detection often perform poorly on camera bodies that use contrast detection.
Assist lamp The assist light (also known as AF illuminator) "activates" passive autofocus systems in low-light and low-
contrast situations in some cameras. The lamp projects visible or
IR light onto the subject, which the camera's autofocus system uses to achieve focus.
Flash-based Many cameras and nearly all
camera phones lack a dedicated autofocus assist lamp. Instead, they use their built-in flash, illuminating the subject with bursts of light. This aids the autofocus system in the same fashion as a dedicated assist light, but has the disadvantage of startling or annoying people. Another disadvantage is that if the camera uses flash focus assist and is set to an operation mode that overrides the flash, it may also disable the focus assist. Thus, autofocus may fail to acquire the subject. Similar
stroboscopic flashing is sometimes used to reduce the
red-eye effect, but this is only intended to constrict the subject's eye pupils before the shot. Some external
flash guns have integrated autofocus assist lamps that replace the stroboscopic on-camera flash. Many of them are red and less obtrusive.
Laser-based Similar to a
laser rangefinder, autofocus systems can project a patterned
laser toward the subject. The laser method is used by Sony, both in their
Cyber-shot cameras since 2003, under the name
Hologram AF Laser, and in some of their smartphones since and including the
Xperia XZ. ==Hybrid autofocus==