displaying two images in a single figure
1 次查看(过去 30 天)
显示 更早的评论
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
2011-6-28
perhaps you could find an image on google images that shows an example of what you want?
采纳的回答
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 个评论
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
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 个评论
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 Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!