DSPRelated.com
Forums

spatial correlation of image...

Started by k_2002_m September 23, 2002
how can i measure the spatial correlation in any image?
suppose, there are two images I1 and I2. is there any method that
will quantitatively tell me which of those two is more/less spatially
correlated?


Hi whoever, For comapring the similarity you can use the cross correlation coefficient . That basically tells you how much is the 2 images same . The formula is r = (Sum(x(i) - Mean(x))*Sum(y(i)-Mean(y))/(SQRT(Sum(SQUARE((x(i)-Mean(x))*SQRT(Sum(SQUARE((y(i)-Mean(y))); where x and y are the 2 images . If the images are same then the correlation coefficient would be very high .else it would be close to zero.