필터 지우기
필터 지우기

Fit big image to small axes in GUI

조회 수: 3 (최근 30일)
Lluis Roca
Lluis Roca 2013년 10월 15일
댓글: Lluis Roca 2013년 10월 16일
Hi,
I have images that I want to show in axes and work on them using the Image Processing Toolbox with gui and pushbuttons.
Sometimes the images are bigger than the axes. Therefore, if the image is bigger how can show a fitted version inside the axes (while keeping the same aspect ratio) and run the IPT on this "fitted" version?
Thanks.

채택된 답변

Image Analyst
Image Analyst 2013년 10월 15일
Use imshow(). It will auto-size the image to fit the max space you allowed for the axes while keeping the aspect ratio the same.
  댓글 수: 3
Image Analyst
Image Analyst 2013년 10월 16일
편집: Image Analyst 2013년 10월 16일
Lluis Roca
Lluis Roca 2013년 10월 16일
thx as always

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by