How can I handle images?

1 次查看(过去 30 天)
Stelios Fanourakis
Stelios Fanourakis 2018-6-20
I have three images displaying in three axes on a figure. I want to get them handles so I can browse them using a slider.
How do I give them handles?
  1 个评论
Stephen23
Stephen23 2018-6-20
编辑:Stephen23 2018-6-20
"How do I give them handles?"
Easy: get the handles explicitly when you show the image. E.g. for imshow:
hnd = imshow(...)

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2018-6-20
You can flip them easier without handles:
yourImage = fliplr(yourImage);
imshow(yourImage);
  17 个评论
Image Analyst
Image Analyst 2018-6-22
编辑:Image Analyst 2018-6-22
Attach staffs.png so I can see what size it is. Maybe you need to set the 'InitialMagnification' option in imshow().
Or zoom it. See attached demo.
Stelios Fanourakis
Stelios Fanourakis 2018-6-22
Thank you Image Analyst. I found the solution. I needed to set characters as unit.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by