I have two images and I need to find out an overlap region of first image in the second image by taking a neighborhood of 30 pixels in the second image.Once I do that I need to store the corresponding indices as an output file.Can someone help me ?

조회 수: 6 (최근 30일)
I have two images and I need to find out an overlap region of first image in the second image by taking a neighborhood of 30 pixels in the second image.Once I do that I need to store the corresponding indices as an output file.Can someone help me ?

답변 (1개)

Image Analyst
Image Analyst 2016년 5월 5일
Which 30 pixels do you want to take? And what do you consider to be an "overlap" in those 30 pixels? Do you just and to extract the 30 pixels from both images and check for equality?
equalPixels = pixelsFromImage1 == pixelsFromImage2;
It would help if you uploaded the image and showed us the 30 pixels.
  댓글 수: 2
RENOH JOHNSON CHALAKKAL
RENOH JOHNSON CHALAKKAL 2016년 5월 5일
There are two sub images of an image I labelled as Ir and Ib.I would like to find out pixels in Ir that are located in the neighborhood of pixels in Ib using an overlap function defined with a neighborhood parameter v=30. And I need to find the indices of the same.
Image Analyst
Image Analyst 2016년 5월 5일
I gave you that code above to find places where the two subimages are equal. Here it is with your variable names:
equalPixels = lb == lr;
[rows, columns] = find(equalPixels);

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

Community Treasure Hunt

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

Start Hunting!

Translated by