Sign in

username:

password:



Not a member?

Search imagedsp



Search tips

Subscribe to imagedsp



imagedsp by Keywords

Error Concealment | JPEG | MPEG-4 | Wavelet | YUV

Ads

Discussion Groups

Technical Discussions related to Image Processing (image coding, compression, digital effects, mpeg, etc)

  

Post a new Thread

correlation - Fatemeh Bazargan - May 22 11:17:49 2006



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=3Dimread('eksempel2.bmp');
J=3Dimread('eksempel2mask.bmp');

[M,N]=3Dsize(I);
I=3Dfft2(I);
I=3Dfft2(double(I));
J=3Dconj(fft2(double(J),M,N));

but then I get the error:

??? Error using =3D=3D> times=20=20
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 sho=
uld i do then?=20

thnx a lot guys..=20

=20

=20



(You need to be a member of imagedsp -- send a blank email to imagedsp-subscribe@yahoogroups.com )

Re: correlation - Omer Nezih Gerek - May 23 8:39:35 2006

Why don't you use xcorr2 ?

Omer

----- Original Message ----- 
From: "Fatemeh Bazargan" <s...@student.dtu.dk>
To: <i...@yahoogroups.com>
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);
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..



(You need to be a member of imagedsp -- send a blank email to imagedsp-subscribe@yahoogroups.com )