1. An image processing method for searching for a position of a pattern included in a model image in a search target by using a plurality of template images and a pyramid, the plurality of template images being hierarchized sequentially by performing reduction processing and low resolution processing on a feature image of the model image, the pyramid being obtained by search target image hierarchization in accordance with reduction and resolution of the template images, the method comprising: calculation of a degree of similarity being performed between the plurality of template images and the search target image, the calculation being performed sequentially in an ascending order of resolution from low to high, the calculation being performed through procedure comprising: a local degree of similarity calculation process of calculating local degree of similarity between a point of the feature image of the model image and a point corresponding to the point of the feature image in the search target image for each range corresponding to the feature image of the model image while shifting a position of the feature image of the model image on the search target image; and a degree of similarity calculation process of calculating degree of similarity for each range corresponding to the feature image of the image model at each position of said each local degree of similarity, wherein correction is performed to decrease an absolute value of the local degree of similarity in a case where the local degree of similarity is less than a predetermined value in the local degree of similarity calculation process.