필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
HASNAIN
HASNAIN 2012년 6월 19일
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!!

채택된 답변

Image Analyst
Image Analyst 2012년 6월 20일
Define manual and automated. If you have handles for the user to manually drag, then that does not seem automated to me.
  댓글 수: 9
HASNAIN
HASNAIN 2012년 6월 20일
@ IM, fair enough.
@Walter Roberson, i dont want to change the axis, resize the graph rather.
Walter Roberson
Walter Roberson 2012년 6월 20일
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'

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Rui Zhao
Rui Zhao 2012년 6월 20일
doc imresize

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by