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

조회 수: 10 (최근 30일)
Daniel Fonsêca
Daniel Fonsêca 2019년 3월 28일
댓글: Daniel Fonsêca 2019년 4월 1일
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.

채택된 답변

Image Analyst
Image Analyst 2019년 3월 28일
Try the truesize() function. Also see my zoom demo, attached.
  댓글 수: 2
Daniel Fonsêca
Daniel Fonsêca 2019년 4월 1일
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 2019년 4월 1일
I got the answer. I used the axes before the imshow. Is there a scrollpanel to statement too?

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2019년 3월 28일
image() or imagesc() instead of using imshow() .
If you are using a grayscale or pseudocolor image you might need to call colormap() after image()

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by