combining two images together

7 vues (au cours des 30 derniers jours)
Oyewale Oyelami
Oyewale Oyelami le 6 Juil 2011
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

Réponses (3)

Sean de Wolski
Sean de Wolski le 6 Juil 2011
Side by side or superimposed?
I = double(imread('cameraman.tif'));
figure; imshow(I+I.',[]) %superimposed
figure; imshow([I I.']); %side by side

Ganesh
Ganesh le 7 Juil 2011
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 commentaire
Sean de Wolski
Sean de Wolski le 7 Juil 2011
Probably. Pad it with zeros if you have to...

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 9 Juil 2011
Fix for Sean's last line:
imshow([I I.'], []);

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by