Can some explain why when I tried to display two images side by side it not only didn't display the two images side by side but displayed one image that now had green in it.
Show older comments
I used imshowpair(I,B); (what I named the images) and it gave me one of my images with green in it. My only explanation is that the two iamges were folded on each other, but then why the green in it when they were both black and white? Please assist.
Thank you
P.S. - Still don't know how to display the images side by side
1 Comment
Ashish Uthama
on 20 Apr 2015
Accepted Answer
More Answers (1)
To display images side by side, you can use subplot. The first 2 parameters define the number of cells in the subplot grid. The last parameter defines the n^th cell of the grid arranged row-wise.
I1 = imread('.../img1');
I2 = imread('.../img2');
figure,
subplot(1,2,1); imshow(I1);
subplot(1,2,2); imshow(I2);
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!