4.0

4.0 | 3 ratings Rate this file 82 downloads (last 30 days) File Size: 54.31 KB File ID: #20061

Template Matching

by Alaa Eleyan

 

27 May 2008 (Updated 27 May 2008)

No BSD License  

finding template image inside a target image

Download Now | Watch this File

File Information
Description

two functions used to implement template matching. the program finds the template image inside the target image using correlation.

Required Products Aerospace Blockset
MATLAB release MATLAB 7.1.0 (R14SP3)
Zip File Content  
Other Files S.JPG,
snapshot.JPG,
tmc.m,
tmp.m,
image1.jpg,
image2.JPG,
K.JPG,
letters.JPG,
main.m,
plotbox.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
05 Jun 2008 Legesse Zerubabel  
09 Aug 2008 Jessica Keating

Hello!this was quite useful to me. But the detection ends once it finds one instance. Is there a way to mark a rectangle over all the instances that it finds?

19 Jan 2009 Lee Borland

Hi there.

Can I ask how to implement this? When you say 2 functions are used, which 2? And you're trying to match image2 to image1? I have to match a scale marking in my image(scale is 10mm). So if i have an image of just the 10mm marking, i call it "image2" and then just rename my origional "image1"??

Sorry, little confused.

Cheers
lee

29 Jan 2009 Chen yuan

one of the code in tmp.m file: M(i,j)=corr/sqrt(sum(sum(Nimage.^2))) that used for Nimage(target image) normalization, whether is it lack of a normalizated for image22(template image)? i modified M(i,j):M(i,j)=corr/sqre(sum(sum(Nimage.^2))) *sum(sum(image22.^2)))) , is it necessary?

13 Apr 2009 Hanaa

Hi Everyone,

This is great. But how do you detect facial features using template matching?

I'll be very grateful for your help. Thanks! :)

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
application Alaa Eleyan 22 Oct 2008 10:03:41
correlation Alaa Eleyan 22 Oct 2008 10:03:41
template matching Alaa Eleyan 22 Oct 2008 10:03:41
template image Alaa Eleyan 22 Oct 2008 10:03:41
image p Alaa Eleyan 22 Oct 2008 10:03:41
target image Alaa Eleyan 22 Oct 2008 10:03:41
template matching marco rondon 04 Jan 2009 20:52:20
template matching Sagar 22 Mar 2009 03:21:42
template matching rakesh markam 25 Jul 2009 06:06:02
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com