how to perform template matching in matlab??
29 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148125/image.jpeg)
How to get the correct match for the template in the image? I have attached a template here and i need to find its match in images which are similar to the one from which i cropped the template.
<<
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148127/image.jpeg)
>>
>>
2 Comments
SAQIB SHEIKH
on 2 Sep 2019
Fisrt You make the Imagefile for your fonts in this file every font image must be in 1 bit depth. Seond Create your Font Template..
Third Apply Template Matching for ur testing data and get your Result.
For More Information Visit
Image Analyst
on 2 Sep 2019
Can you move this down to the Answer section, instead of up here which is used to ask posters for clarification? Thanks in advance.
Accepted Answer
Image Analyst
on 19 Mar 2015
You can use normalized cross correlation. See attached demo.
Or use the Computer Vision System Toolbox. See the Feature-Based Object Detection section on this page: http://www.mathworks.com/products/computer-vision/features.html#feature-detection%2C-extraction%2C-and-matching
7 Comments
Image Analyst
on 9 Sep 2022
@Ahmad Gad, see https://www.mathworks.com/products/computer-vision.html#feature-detection if your template may be rotated or scaled in the actual scene.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!