Patent ID: 8842212

Claim:
An optical device comprising: an image sensor having a plurality of pixels configured to output signals to be used for detecting a focus state of a photographing lens, the plurality of pixels including: a plurality of first focus state detection pixel pairs that respectively receive a pair of light fluxes having transmitted different pupil areas of the photographing lens, and a plurality of second focus state detection pixel pairs that respectively receive a pair of light fluxes having transmitted pupil areas shifted by a predetermined amount from the pupil areas of the photographing lens where the pair of light fluxes received by the first focus state detection pixel pairs have transmitted; and a detection unit configured to detect the focus state based on the signals output from the first and second focus state detection pixel pairs, wherein the detection unit: selects signals to be added so that respective base-line lengths of the first and second focus state pixel pairs and a base-line length corresponding to the added signals are equal to each other at a time of adding the signals output from the first and second focus state pixel pairs if the subject to be photographed is darker than a predetermined brightness, detects the focus state based on signal pairs obtained by adding the selected signals output from the plurality of first focus state detection pixel pairs and the signals output from the plurality of second focus state detection pixel pairs, respectively, if a subject to be photographed is darker than the predetermined brightness, and detects the focus state based on signal pairs output from the plurality of first focus state detection pixel pairs and signal pairs output from the plurality of second focus state detection pixel pairs, respectively, if a subject to be photographed is the same or brighter than the predetermined brightness.