Patent ID: 8754976

Claim:
An image-capturing apparatus comprising: an image sensor including a plurality of pixels which photoelectrically convert a subject image, a plurality of pairs of focus detection pixels to detect a focusing status of a lens, which forms the subject image, by phase difference detection being arranged in the plurality of pixels at a predetermined pitch, each pair of focus detection pixels including a first focus detection pixel and a second focus detection pixel; and a detection unit that detects, based on a phase difference between a first image waveform and a second image waveform obtained from the first focus detection pixels and the second focus detection pixels of the plurality of pairs of focus detection pixels, respectively, the focusing status of the lens, wherein in two adjacent pairs of focus detection pixels in a direction perpendicular to the phase difference direction, layouts of the first focus detection pixels and the second focus detection pixels are switched, the detection unit detects the focusing status of the lens using the first image waveform and the second image waveform obtained from the plurality of pairs of focus detection pixels in which the layouts of the first focus detection pixels and the second focus detection pixels are switched, and the detection unit generates the first image waveform either by averaging or adding one set of image waveforms obtained from the first focus detection pixels whose layouts are switched and generates the second image waveform either by averaging or adding one set of image waveforms obtained from the second focus detection pixels whose layouts are switched.