Patent attributes
An edge code histogram of a model generated in a model image is registered. A target region with respect to the input image is set. An edge code histogram for the target region is generated. A relative positional relationship between the edge code histogram of the model and the edge code histogram for the target region is sequentially changed, and a degree of coincidence between the edge code histograms at each relative position is calculated. A possibility that the region that matches the model is contained in the set target region from the sequentially calculated degree of coincidence between the edge code histograms is evaluated. Then a candidate point having a possibility of matching the model in the input image is specified while sequentially changing the position of the target region with respect to the input image and repeating steps above for each target region.