1. An image processing method of performing image processing by an image processing apparatus, the method comprising: a first process of generating a first pyramid by hierarchizing a plurality of template images having different resolutions from each other in order of the resolution; a second process of generating a second pyramid by hierarchizing a plurality of search target images having different resolutions from each other corresponding to the same resolutions of the template images in the first pyramid in order of the resolution; and a search process of performing search processing for searching for a feature image included in the template image in the first pyramid from the search target image in the second pyramid in a hierarchy of the same resolution, wherein the first process includes setting a number of stages of the first pyramid in a manner that a size of the feature image included in each of the template images in the first pyramid is not smaller than a previously set threshold.