摘要 |
<p>An imaging device is configured to include a spatial frequency detector (111) which has an area dividing function in which the image data is divided into a plurality of small areas for detection of the spatial frequency, and a focus data acquiring function in which a predetermined frequency component is detected from each of the small areas, the frequency component indicating a focus state of an image in each of the small areas; and a control/arithmetic unit (120) calculates an in-focus position (x) of each of the small areas based on the frequency component detected by the focus data acquiring function, calculates, based on the calculated in-focus position in each of the small areas, a number of small areas which are in focus at respective in-focus positions (x) to obtain a distribution function (G(x)) of the in-focus positions (x), and sets the plurality of different in-focus positions (x) based on the distribution function (G(x)).</p> |