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 ?
8 次查看(过去 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 ?
0 个评论
回答(1 个)
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
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
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!