how to perform template matching in matlab??
조회 수: 29 (최근 30일)
이전 댓글 표시
![](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
SAQIB SHEIKH
2019년 9월 2일
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
2019년 9월 2일
Can you move this down to the Answer section, instead of up here which is used to ask posters for clarification? Thanks in advance.
채택된 답변
Image Analyst
2015년 3월 19일
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
Image Analyst
2022년 9월 9일
@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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!