Template Matching between two binary image.
7 views (last 30 days)
Show older comments
Sir,
I have two binary images. One is the main image and another is for template image. Now i want to match them to see if they are equal or not. What will be the best approach to do that for this kind of problem? For your well understanding i attach two images
this is the main binary image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146124/image.jpeg)
And this is the template image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146125/image.jpeg)
Please help sir.
0 Comments
Answers (1)
Image Analyst
on 16 Nov 2014
Edited: Image Analyst
on 16 Nov 2014
Try using Hu's moments: http://www.youtube.com/watch?v=Nc06tlZAv_Q Hu's moments for the image will match if the image is rotated, translated, scaled, etc.
4 Comments
Image Analyst
on 16 Nov 2014
I already suggested Hu's moments. I don't know why you rejected that. I actually haven't used it myself but it looks promising. There are other methods. Look up methods in Vision Bib on pattern recognition. Do a search on CBIR which uses a large variety of methods to match features and objects. I can't help much more, especially since soon I will be traveling for most of today and tomorrow.
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!