|
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.
|