1. An image processing apparatus comprising a processor, the processor comprising: focal information extracting means for extracting, for each individual pixel of an input image, as focal information, a high-frequency component from luminance signals of peripheral pixels; region uniting means for generating united focal information by uniting, on a pixel-by-pixel basis, the items of focal information of peripheral pixels; depth value detecting means for detecting, using the focal information, depth values of the individual pixels of the input image; integrating means for integrating the depth values in each predetermined region of the input image; analyzing means for analyzing the tendency of an integrated result of the depth values in each predetermined region of the input image; and processing means for processing the input image on the basis of an analysis result obtained by the analyzing means.