A reference comparison image obtained from a printed material is input.
The grayscale feature amount of the reference comparison image is
extracted. Using the extracted grayscale feature amount, a target
comparison image corresponding to the reference comparison image is
retrieved from a plurality of electronic data stored as target comparison
images in a storage medium. The retrieved image is extracted from the
storage medium and processed.