How can I handle images?

1 visualización (últimos 30 días)
Stelios Fanourakis
Stelios Fanourakis el 20 de Jun. de 2018
Comentada: Stelios Fanourakis el 22 de Jun. de 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 comentario
Stephen23
Stephen23 el 20 de Jun. de 2018
Editada: Stephen23 el 20 de Jun. de 2018
"How do I give them handles?"
Easy: get the handles explicitly when you show the image. E.g. for imshow:
hnd = imshow(...)

Iniciar sesión para comentar.

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by