The invention discloses a
template matching method based on a local-overall
view angle, and belongs to the field of
computer vision. According to the method, local and overall similarities of a template and a target object are calculated through a
shape context descriptor and a shape measurement descriptor respectively, and
template matching is completed by combining information of local and overall view angles. According to the method, firstly, a
template library needs to be constructed, then
template matching is carried out, and the matching process comprises the following steps of contour extraction, contour
feature description and
feature matching. Firstly, a target contour is extracted from an original picture, and then local and overall features of the contour are represented by two feature descriptors (a
shape context feature and a shape measurement feature). And finally, matching the target contour with the
pollen template in the constructed
template library according to the
feature descriptor to form a corresponding relationship between the target contour and the template, and screening a target contour region with a strong corresponding relationship as a matching result. According to the method, the matching accuracy is improved through two feature descriptors, details and an overall angle.