How can I handle images?

2 vues (au cours des 30 derniers jours)
Stelios Fanourakis
Stelios Fanourakis le 20 Juin 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 commentaire
Stephen23
Stephen23 le 20 Juin 2018
Modifié(e) : Stephen23 le 20 Juin 2018
"How do I give them handles?"
Easy: get the handles explicitly when you show the image. E.g. for imshow:
hnd = imshow(...)

Connectez-vous pour commenter.

Réponses (1)

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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by