1. An image processing method comprising the steps of: separating first image data of an image into image data of objects and image data of background; obtaining feature amounts of objects from the image data of objects; comparing the feature amounts of the objects with data stored in a database; and determining front-back relations among the objects using results of the comparisons.