How to show a image in axes without change its size?

10 visualizaciones (últimos 30 días)
Daniel Fonsêca
Daniel Fonsêca el 28 de Mzo. de 2019
Comentada: Daniel Fonsêca el 1 de Abr. de 2019
Hello,
I'm trying to show a image in axes using the imshow. But, when i did it, the axes upload and the size change. I want to know how i can show a image without resize the axes. I want the image be showed in the center of axes.

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Mzo. de 2019
Try the truesize() function. Also see my zoom demo, attached.
  2 comentarios
Daniel Fonsêca
Daniel Fonsêca el 1 de Abr. de 2019
When I useyour function zoom, the figure becomes so big. How can i hold it in its original size?
Daniel Fonsêca
Daniel Fonsêca el 1 de Abr. de 2019
I got the answer. I used the axes before the imshow. Is there a scrollpanel to statement too?

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 28 de Mzo. de 2019
image() or imagesc() instead of using imshow() .
If you are using a grayscale or pseudocolor image you might need to call colormap() after image()

Categorías

Más información sobre Image Processing Toolbox 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