Borrar filtros
Borrar filtros

How to resize and display an image......

3 visualizaciones (últimos 30 días)
HASNAIN
HASNAIN el 19 de Jun. de 2012
Hi All,
So when i do imagesc(img); it shows an image as follows:
However i want it to be displayed like this :
[EDITED, Jan, above picture is too wide to be embedded]
The difference is that the latter has been resized using the image resizing handles (from the corners of the image). Just to emphasise, i mean these handles :
^^but when applied to a figure in MATLAB.
I know i can do this manually but i want to incorporate this in my .m file and hence want to keep it automated.
Many thanks!!

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Jun. de 2012
Define manual and automated. If you have handles for the user to manually drag, then that does not seem automated to me.
  9 comentarios
HASNAIN
HASNAIN el 20 de Jun. de 2012
@ IM, fair enough.
@Walter Roberson, i dont want to change the axis, resize the graph rather.
Walter Roberson
Walter Roberson el 20 de Jun. de 2012
axis equal will resize the graph so that it does not looked stretched.
Anyhow, consider set()'ing the axes Position property, perhaps using 'Units', 'normalized'

Iniciar sesión para comentar.

Más respuestas (1)

Rui Zhao
Rui Zhao el 20 de Jun. de 2012
doc imresize

Categorías

Más información sobre Images 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