Patent ID: 7605847

Claim:
A computer-accessible recording medium storing a program comprising computer-readable instructions that cause a computer to function as: a storage module which stores a plurality of pieces of reference image data in a storage device associated with subject information defining subjects in images represented by the respective image data of the plurality of pieces of reference image data, an input module to which subject image data is input, a distribution data generation module which generates pieces of two-dimensional distribution data of product-moment correlation coefficients for each of the plurality of pieces of reference image data stored in the storage device by calculating the product-moment correlation coefficients between each of the plurality of pieces of reference image data and parts of the subject image data, an identification module which identifies a piece of two-dimensional distribution data having the highest maximum value among all the two-dimensional distribution data generated for all the pieces of the reference image data, and an output module which reads out the subject information associated with the reference image data corresponding to the identified pieces of two-dimensional distribution data from the storage device and which outputs the subject information, wherein: the distribution data generation module includes: a color space conversion module which converts color space of the subject image data into YCrCb while converting color space of all the reference image data stored in the storage device into YCrCb, a coefficient calculation module which calculates product-moment correlation coefficients between Cr components of each reference image data and parts of Cr components of the subject image data and thereby generates two-dimensional distribution data of the product-moment correlation coefficients regarding the Cr components for each reference image data, and which calculates product-moment correlation coefficients between Cb components of each reference image data and parts of Cb components of the subject image data and thereby generates two-dimensional distribution data of the product-moment correlation coefficients regarding the Cb components for each reference image data, and an average calculation module which executes an average calculation process, for calculating each geometric average of the product-moment correlation coefficients regarding the Cr and Cb components at the same two-dimensional coordinates, for each reference image data and thereby generates two-dimensional distribution data of the geometric averages for each reference image data, and wherein the identification module identifies a piece of two-dimensional distribution data of geometric averages having the highest maximum value among all the two-dimensional distribution data of geometric averages generated for all the reference image data.