Abstract:
Disclosed is a pattern matching method whereby a testing point can be searched accurately while simplifying the work of presetting. An image region of a part of a captured image is extracted, and a divided image of the image region is set as a template image. A pattern matching is performed by rotating the template image. Moreover, the pattern matching determines whether a point-symmetric pattern exists inside the image region.
Abstract:
An inspection apparatus performing template matching of a search image capable of outputting a correct matching position even if a pattern similar to a template exists in the search image is provided. The inspection apparatus includes a template cutout means for cutting out a template from a template selection image, a marginal similarity calculation means for calculating marginal similarity distribution information, which is a similarity distribution of the template selection image to the template, a search image similarity calculation part for calculating search image similarity distribution information, which is a similarity distribution of the search image to the template, a similarity distribution-to-similarity distribution similarity calculation means for calculating similarity distribution-to-similarity distribution similarity information between the marginal similarity distribution information and the search image similarity distribution information, and a matching position determination part for determining a matching position based on the similarity distribution-to-similarity distribution similarity.