Will normxcorr2 be helpful in comparing 2 images with little differences.?

조회 수: 1 (최근 30일)
Ankit Gupta
Ankit Gupta 2013년 5월 8일
Hi , I have 2 images, one in which a circular loop been placed on a rectangular surface, second is of the same circular loop at different position(difference in mm) on the same rectangular surface. will normxcorr2 be helpful in detecting the object shift in an image, or if there is any other way to detect the shift in the object in image automatically, as I have to deal with huge database of those images and detect how much the loop is been shifted.

답변 (1개)

Image Analyst
Image Analyst 2013년 5월 8일
That should work, as long as it is the same loop, and not distorted or misshapen.
  댓글 수: 2
Ankit Gupta
Ankit Gupta 2013년 5월 8일
I tried to use this and ran this code:( the images are in gray)
cc = normxcorr2(imrgb_z{1},imrgb_z{250});
[max_cc, imax] = max(abs(cc(:)));
[ypeak, xpeak] = ind2sub(size(cc),imax(1))
corr_offset = [ (ypeak-size(imrgb_z{1},1)) (xpeak-size(imrgb_z{1},2)) ]
I am getting the result as
corr_offset =
0 0
What does that means, is there a no difference in the images? But actually there is if i see it manually.
Anand
Anand 2013년 5월 9일
Could you upload a couple of sample images...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by