A shape-based matching algorithm was proposed to improve the accuracy and speed of image matching in industrial detection.It is the template matching based on shape information,using image pyramid strategy,according to matching similarity measures defined.Specific process was as follows: first,the template was generated by selecting the interest region in the reference image.Then,the template and the search image were filtered using Canny operator,and the direction vectors of their edges were computed.The image pyramids were constructed for the filtered template and the filtered search image on this basis.The image matching was carried out on the highest level of the image pyramids according to the similarity measures defined.After the potential matches with matching scores were identified,they were tracked through the resolution hierarchy according to scores descending in successive until they were found on the lowest level of the image pyramids.Finally,the sub-pixel precision pose parameters were achieved through the least-squares method.Experimental results demonstrate that the proposed algorithm has fast speed and high accuracy,moreover it is robust to the occlusion,clutter,nonlinear illumination,defocus,low contrast,global contrast change,local contrast change,and so on,which meets the actual industrial demand effectively.
Read full abstract