hi,
I have a question about image correlation, i hope someone here can help me.
I'd like to find the correlation image between an image eksempel2.bmp and a
subimage eksempel2mask.bmp using Matlab.
my matlab code is:
I=imread('eksempel2.bmp');
J=imread('eksempel2mask.bmp');
[M,N]=size(I);
I=fft2(I);
I=fft2(double(I));
J=conj(fft2(double(J),M,N));
but then I get the error:
??? Error using ==> times
Array dimensions must match for binary array op.
on the internet i read that for the TIMES function to work, either the two
inputs must be the same size or one must be a scalar.
but what if I want to recognize a subimage smaller than my image?? what should i
do then?
thnx a lot guys..
correlation
Started by ●May 22, 2006
Reply by ●May 23, 20062006-05-23
Why don't you use xcorr2 ?
Omer
----- Original Message -----
From: "Fatemeh Bazargan"
To:
Sent: Monday, May 22, 2006 12:58 PM
Subject: [imagedsp] correlation
hi,
I have a question about image correlation, i hope someone here can help me.
I'd like to find the correlation image between an image eksempel2.bmp and a
subimage eksempel2mask.bmp using Matlab.
my matlab code is:
I=imread('eksempel2.bmp');
J=imread('eksempel2mask.bmp');
[M,N]=size(I);
It2(I);
It2(double(I));
J=conj(fft2(double(J),M,N));
but then I get the error:
??? Error using ==> times
Array dimensions must match for binary array op.
on the internet i read that for the TIMES function to work, either the two
inputs must be the same size or one must be a scalar.
but what if I want to recognize a subimage smaller than my image?? what
should i do then?
thnx a lot guys..
Omer
----- Original Message -----
From: "Fatemeh Bazargan"
To:
Sent: Monday, May 22, 2006 12:58 PM
Subject: [imagedsp] correlation
hi,
I have a question about image correlation, i hope someone here can help me.
I'd like to find the correlation image between an image eksempel2.bmp and a
subimage eksempel2mask.bmp using Matlab.
my matlab code is:
I=imread('eksempel2.bmp');
J=imread('eksempel2mask.bmp');
[M,N]=size(I);
It2(I);
It2(double(I));
J=conj(fft2(double(J),M,N));
but then I get the error:
??? Error using ==> times
Array dimensions must match for binary array op.
on the internet i read that for the TIMES function to work, either the two
inputs must be the same size or one must be a scalar.
but what if I want to recognize a subimage smaller than my image?? what
should i do then?
thnx a lot guys..