摘要 |
An image processing apparatus free from the inconvenience of an increase in the number of focal positions for image pickup or reduction of the distance accuracy. An optical imaging system forms an object image and an image pickup device picks up the formed object image. A first range image is generated from a plurality of images picked up by the image pickup device and having parallax. A second range image is generated from a plurality of images picked up by the image pickup device and having different degrees of focus at respective corresponding locations therein. A synthesis coefficient is calculated according to the depth of field of a main object selected from objects shown in the object image. A synthesized range image is generated by synthesizing the generated first range image and second range image using the calculated synthesis coefficient. |