How can I handle images?

2 Ansichten (letzte 30 Tage)
Stelios Fanourakis
Stelios Fanourakis am 20 Jun. 2018
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 Kommentar
Stephen23
Stephen23 am 20 Jun. 2018
Bearbeitet: Stephen23 am 20 Jun. 2018
"How do I give them handles?"
Easy: get the handles explicitly when you show the image. E.g. for imshow:
hnd = imshow(...)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 20 Jun. 2018
You can flip them easier without handles:
yourImage = fliplr(yourImage);
imshow(yourImage);
  17 Kommentare
Image Analyst
Image Analyst am 22 Jun. 2018
Bearbeitet: Image Analyst am 22 Jun. 2018
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 am 22 Jun. 2018
Thank you Image Analyst. I found the solution. I needed to set characters as unit.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by