摘要 |
PROBLEM TO BE SOLVED: To correctly extract a mirror reflection light component from reflection light from a subject, and accurately estimate a light source color.SOLUTION: An image processor calculates a pixel value difference between an attention pixel and a vicinity pixel thereof in an input image (S202), calculates the similarity degree between each pixel value difference (S205), repeatedly performs the series of processing on each pixel (S208), and calculates a distribution of the pixel value differences (S207). A light source estimation part estimates a light source color which irradiates a subject in an input image on the basis of the calculated distribution. Here, a pixel having the calculated similarity degree under a prescribed threshold is removed from a target of the distribution calculation of the pixel value differences. |