フィルターのクリア

combining two images together

1 回表示 (過去 30 日間)
Oyewale Oyelami
Oyewale Oyelami 2011 年 7 月 6 日
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
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
Ganesh 2011 年 7 月 7 日
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
Sean de Wolski 2011 年 7 月 7 日
Probably. Pad it with zeros if you have to...

サインインしてコメントする。


Image Analyst
Image Analyst 2011 年 7 月 9 日
Fix for Sean's last line:
imshow([I I.'], []);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by