MATLAB: Reading multiple images

reading multiple images

hi all, i have two sets of images which i need to compare.i have to find the intersection region of those two sets.can any one suggest how to approach and if possible with an example. regards k.v.swamy

Best Answer

Hello,
In order to find the intersection of two similar image,
you can do image subtraction.
clear; clc;
I = double(imread('cameraman.tif'));
J = double(I);
J(115:155, 192:204) = 50;
intersection = abs(J - I);
imshow(uint8(I)); title('Image A');
figure, imshow(uint8(J)); title('Image B');
figure, imshow(uint8(intersection)); title('Intersection A and B');
Related Question