A computer program embodied on a computer-readable medium, the computer program including instructions which are executable by a computer to perform an image processing method, for extracting edges from digital photographic images and for obtaining edge data that represents the states of the edges, comprising the steps of: