摘要 |
PROBLEM TO BE SOLVED: To calculate distances in all pixels in an input image using a DFD system with high accuracy at a high speed.SOLUTION: An image processing device that calculates a distance to a subject in an image by use of a plurality of images having different blur conditions captured with different imaging parameters includes: region dividing means that divides the image into regions of an arbitrary shape estimated to have substantially the same distance, on the basis of image feature quantity; and distance calculation means that calculates one distance for each of the regions of the arbitrary shape, which are formed by the region dividing means and used for distance calculation, and decides the calculated distance as a distance of the above mentioned region. |