On the basis of metadata stored in the metadata DB 113, the distance classification library 121 calculates a relative distance between an image selected from among images stored in the image storage unit 111 and each of the images other than the selected image and classifies the images stored in the image storage unit 111 into one or more clusters in accordance with the calculated relative distanc