Patent ID: 8098897

Claim:
An image processing apparatus comprising: a distance measurement section which measures a distance from the section to a subject for each pixel on the basis of a plurality of images photographed at different visual point positions; a display section which displays appearance frequency distribution of distances measured by the distance measurement section; a setting section which sets a range of the distance in which an obstacle is present on the basis of the appearance frequency distribution displayed on the display section, wherein the obstacle appears as an obstructed region in an image; and an image formation section which executes image processing of removing the obstructed region and replacing the obstructed region with an image signal different from the obstructed image on the basis of an output from the distance measurement section, wherein the image formation section includes: a first image processing section which executes image processing relating to the obstructed region; a second image processing section which subjects a region different from the obstructed region to image processing different from the image processing relating to the obstructed region; and an image integration section which integrates an output from the first image processing section and an output from the second image processing section into one result.