Path: news.mathworks.com!not-for-mail
From: "Dave Robinson" <dave.robinson@somewhere.biz>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Template Matching
Date: Mon, 7 Apr 2008 16:15:04 +0000 (UTC)
Organization: STFC Rutherford Appleton Laboratory
Lines: 62
Message-ID: <ftdha8$d5i$1@fred.mathworks.com>
References: <fsnera$t69$1@fred.mathworks.com> <b725e021-4633-4de8-ad57-abd4fcd9e27c@m36g2000hse.googlegroups.com> <36d513fb-3cc7-49e7-8397-3b3fefc79825@j1g2000prb.googlegroups.com> <ftco07$9sl$1@fred.mathworks.com> <ftdavl$7dc$1@canopus.cc.umanitoba.ca>
Reply-To: "Dave Robinson" <dave.robinson@somewhere.biz>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207584904 13490 172.30.248.37 (7 Apr 2008 16:15:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 7 Apr 2008 16:15:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 968489
Xref: news.mathworks.com comp.soft-sys.matlab:461541


roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in 
message <ftdavl$7dc$1@canopus.cc.umanitoba.ca>...
> In article <ftco07$9sl$1@fred.mathworks.com>,
> Dave Robinson <dave.robinson@somewhere.biz> wrote:
> 
> >For your application you DO NOT want to stretch your 
images 
> >to the same size. It is essential that the spatial scale 
> >between your search image and template remain fixed. 
Using 
> >Walter's technique will change the scaling of your 
> >template, so you will no longer be able to find a match 
> >between the template and the Search Image. 
> 
> >What you have to do is embed your template image into a 
> >blank frame, so that if you view the resulting buffered 
> >image you see your template, the same size as it started 
> >and a large region of black pixels. Walters suggestions 
> >will essentially fill your buffer with a scaled version 
of 
> >your template. 
> 
> You are not representing what I said accurately. What I 
wrote was,
> 
> >>You have a problem that those two images do not have 
the same
> >>aspect ratio. Therefor in order to expand the size of 
A, you
> >>are either going to need to leave some empty space in 
the enlarged
> >>image, or you are going to have to stretch the x and y 
axes
> >>unequally.
> 
> and I then proceeded to ask what characteristics were 
important
> in the image expansion, so that we could figure out what 
kind
> of expansion to use. Your "blank frame" option is the 
same as
> my conditional "empty space" option, and my image 
magnification
> option was accompanied by a warning that it would stretch 
the
> axes unequally.

Hi Walter

No critisism of your solution was meant, indeed it was a 
full and valid explanation (as usual;-) of what the 
original question you responded to asked.

I just got the impression that the guy had not understood 
the help that had been provided with earlier postings, and 
wanted to make sure that he wasn't flying off at a tangent.

Sorry if I upset you, it wasn't intentional

Regards

Dave Robinson