combining two images together
显示 更早的评论
i didnot know how to do this...i want to display an image vertically and the other horizontally....in the same figure...any way out..Thanks
回答(3 个)
Sean de Wolski
2011-7-6
Side by side or superimposed?
I = double(imread('cameraman.tif'));
figure; imshow(I+I.',[]) %superimposed
figure; imshow([I I.']); %side by side
Ganesh
2011-7-7
0 个投票
The above answer worked fine for superimposition. But, it gave a blank image for the side by side command. Maybe because here the size of the image becomes 256*512
1 个评论
Sean de Wolski
2011-7-7
Probably. Pad it with zeros if you have to...
Image Analyst
2011-7-9
Fix for Sean's last line:
imshow([I I.'], []);
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!