摘要 |
An inspection device that performs pattern matching on a searched image performs matching between a template image of an inspection object and the searched image by using: a feature region extraction process unit that extracts a feature quantity from the template image acquired for learning; a feature quantity extraction process unit that extracts a feature quantity from the searched image acquired for learning; a mutual feature quantity calculation process unit that calculates a mutual feature quantity of the template image and the searched image from the feature quantity extracted from the template image and the feature quantity extracted from the searched image; a learning process unit that calculates, using a plurality of the mutual feature quantities, a discrimination boundary surface that determines matching success or failure; a process unit that calculates a plurality of the mutual feature quantities from an image acquired from the inspection object; and the plurality of mutual feature quantities and the discrimination boundary surface. Thus, an inspection device can be provided that outputs an accurate matching position in template matching even when there is a large apparent image discrepancy between the template and the searched image. |