摘要 |
During a period before focusing is instructed, contrast detection is used to detect positions at which focus evaluation values reach a peak in regard to detection regions obtained by dividing a region containing a region in which phase-difference detection pixels of an imaging element are disposed; when focusing is instructed, focus evaluation value peak positions of each of the detection regions are acquired; if an optical system is in a focused state, the number of detection regions whose deviation in focus evaluation value peak position is within a threshold value is counted; if the number of applicable detection regions is equal to or greater than a predetermined value, focus position detection and focus control are performed by phase-difference detection, and if the number of detection regions is less than the predetermined value, focus position detection and focus control are performed by contrast detection. |