Thread Subject: image correlation matching

Subject: image correlation matching

From: Eihab

Date: 3 Apr, 2009 13:15:03

Message: 1 of 3

i try to perform matching correlation in the frequency domain between two images(date base images of road & stop sign template )
i try to find the location of the 'stop sign template' inside the database images using FFT's.
This is my code :
stop = imread('stop2.jpg');
imshow(stop)
st1 = rgb2gray(stop);
figure,imshow(st1)
temp1 = st1(299:376,110:177);
figure,imshow(temp1);
[m,n]=size(st1)
C = real(ifft2(fft2(double(st1)) .* fft2(rot90(double(temp1),2),m,n)));
figure,imshow(C,[])
mx=max(C(:))
thresh = mx-10
figure,imshow(C> thresh)
% End of the code .
anybody help me & tell me the correct way to use fft2 function to make correlation between two images ?!

 

Subject: image correlation matching

From: J.Meyer

Date: 20 Apr, 2009 18:07:20

Message: 2 of 3

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.

Subject: image correlation matching

From: Prasanna

Date: 9 Nov, 2009 11:37:02

Message: 3 of 3

I'm also in this situation.But i am having binary image and binary template. Please reply to this.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

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