1. An image processing apparatus, comprising: a storage configured to store, for a plurality of areas in a target image, attributes and patterns associated with the attributes, each the attributes being assigned to each the plurality of areas, and each the pattern being created from areas having an identical attribute among the attributes; and a processor configured to: obtain an area that is specified in the target image and an attribute that is assigned to the specified area, search the storage for a pattern based on similarity between the pattern and a pattern created from a certain number of areas having the assigned attribute, and search for an area in the target image based on similarity between the area and the certain number of areas in accordance with the searched pattern.