摘要 |
PROBLEM TO BE SOLVED: To prevent a wrong operation of focus detection when an exposure condition varies due to change in a diaphragm aperture diameter during processing of calculation of an amount of defocus on the basis of an amount of image blur by a rolling shutter operation of a CMOS image sensor.SOLUTION: When it is determined that there is change in a diaphragm aperture diameter (S200), calculation of an amount of defocus in a focus detection area having a focus detection pixel arranged in a vertical direction is prohibited, and the amount of defocus is calculated only in a focus detection area having the focus detection pixel arranged in a horizontal direction (S220). Since the diaphragm aperture diameter is different for each row, the diaphragm aperture diameter at a midpoint of an exposure time in a row having the focus detection pixel arranged in the horizontal direction is detected, and in accordance with the detected diaphragm aperture diameter, the calculation of the amount of the defocus is processed on the basis of detection of an amount of image blur.SELECTED DRAWING: Figure 20 |