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

Antworten (3)

Sean de Wolski
Sean de Wolski am 6 Jul. 2011

1 Stimme

Side by side or superimposed?
I = double(imread('cameraman.tif'));
figure; imshow(I+I.',[]) %superimposed
figure; imshow([I I.']); %side by side
Ganesh
Ganesh am 7 Jul. 2011

0 Stimmen

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 Kommentar

Sean de Wolski
Sean de Wolski am 7 Jul. 2011
Probably. Pad it with zeros if you have to...

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 6 Jul. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by