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!