Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!q2g2000vbr.googlegroups.com!not-for-mail
From: "J.Meyer" <j.meyer33@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image correlation matching
Date: Mon, 20 Apr 2009 11:07:20 -0700 (PDT)
Organization: http://groups.google.com
Lines: 23
Message-ID: <2526654a-9d20-4e8d-b486-a5dbade18650@q2g2000vbr.googlegroups.com>
References: <gr524n$pm2$1@fred.mathworks.com>
NNTP-Posting-Host: 128.173.193.41
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1240250840 17732 127.0.0.1 (20 Apr 2009 18:07:20 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 20 Apr 2009 18:07:20 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q2g2000vbr.googlegroups.com; posting-host=128.173.193.41; 
	posting-account=hFxgUAoAAADrPsQ7cNr1tWshQCy2szFi
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
	1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 
	3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:534136


On Apr 3, 9:15=A0am, "Eihab " <Eihaab1...@yahoo.com> wrote:
> i try to perform matching correlation in the frequency domain between two=
 images(date base images of road =A0& stop sign template )
> i try to find the location =A0of the 'stop sign template' inside the data=
base images using FFT's.
> This is my code :
> stop =3D imread('stop2.jpg');
> imshow(stop)
> st1 =3D rgb2gray(stop);
> figure,imshow(st1)
> temp1 =3D st1(299:376,110:177);
> figure,imshow(temp1);
> [m,n]=3Dsize(st1)
> C =3D real(ifft2(fft2(double(st1)) .* fft2(rot90(double(temp1),2),m,n)));
> figure,imshow(C,[])
> mx=3Dmax(C(:))
> thresh =3D mx-10
> figure,imshow(C> thresh)
> % End of the code .
> anybody help me & tell me the correct way to use fft2 function to make co=
rrelation between two images ?!

Any responses to this?  I am in a similar situation.