displaying two images in a single figure

조회 수: 1 (최근 30일)
Oyewale Oyelami
Oyewale Oyelami 2011년 6월 28일
i want to display two images on a single figure whereby they will be lying on each other....one vertically and the other horizontally on each other in the same figure.
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 6월 28일
perhaps you could find an image on google images that shows an example of what you want?

댓글을 달려면 로그인하십시오.

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 6월 28일
huh?
like a
doc subplot %?
Or do you want the images to be meshed together?
Addendum
I = double(imread('cameraman.tif'));
imshow(I+I.',[])
%maybe?
  댓글 수: 2
Oyewale Oyelami
Oyewale Oyelami 2011년 6월 28일
i appreciate your idea..but using the subplot ....i have tried it but is not working....i wish meshing it together will be of help but i did not know how to go abt it...if you can be of help
Sean de Wolski
Sean de Wolski 2011년 6월 28일
Then you shouldn't have accepted this answer :(
What isn't working about subplot? Is that the result you want? (doc subplot)

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 6월 28일
You can use image() or imagesc(). Both routines allow you to pass in the coordinates of the center of the lower-left and upper-right pixel (not of the edge of those pixels)
  댓글 수: 2
Oyewale Oyelami
Oyewale Oyelami 2011년 6월 28일
i want to display the images on each other....one horizontally and the other vertically....
Walter Roberson
Walter Roberson 2011년 6월 28일
How many objects do you have? "one horizontally and the other vertically" sounds like you have three objects
I
oI
where I is an image and o is the unknown third object.
Or do you mean you want to display two images in the same area of the figure, one blocking the view of the other, with one of the two rotated 90 degrees?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by