The present invention provides a technique capable of promptly and easily acquiring
object color component data of a plurality of subjects even if the spectral distribution of light illuminating said plurality of subjects is not known in advance. For example, under predetermined conditions of irradiating a subject with predetermined illumination light by using an electronic flash, an image input
system captures an image of a first subject to thereby acquire first
color image data. On the basis of the acquired first
color image data, the image input
system estimates first
object color component data of the first subject. After that, the image input
system captures an image of the first subject in unknown illumination environments to thereby acquire second
color image data. By using the first
object color component data and the second color image data, the image input system estimates the spectral distribution of unknown illumination. Subsequently, on the basis of the estimated spectral distribution of unknown illumination, the image input system calculates a conversion matrix for converting color image data of the subject acquired in the unknown illumination environments into object color component data.