Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!y21g2000hsf.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Template Matching
Date: Sun, 30 Mar 2008 14:29:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 19
Message-ID: <26b8ffaf-1a49-4276-826a-6941f16bb5e8@y21g2000hsf.googlegroups.com>
References: <fsnera$t69$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.67.199
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1206912566 24629 127.0.0.1 (30 Mar 2008 21:29:26 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 30 Mar 2008 21:29:26 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: y21g2000hsf.googlegroups.com; posting-host=75.186.67.199; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
Xref: news.mathworks.com comp.soft-sys.matlab:459967


On Mar 30, 3:18=A0am, "akane ajibana" <androalpha...@yahoo.com> wrote:
> hi everyone..
> i have need help on template matching. i have an image that
> need to be match with 3 subimage(template images).can anyone
> teach me on the coding in Matlab
------------------------------------------------
akane:
Just scan it across your image (using 2 nested for loops).  Hit every
pixel in the image multiplying the image under the template by your
template.  Check to see if it attains the value it should if your
image exactly matched your template.  You might be able to send your
template and your image into the conv2() function and avoid the nested
for loops.  Are you using a gray scale image, binary image, color
image, or 3D volume image?

What exactly have you tried yet?  Post your code.  Post images if you
can.
Regards,
ImageAnalyst