フィルターのクリア

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 日
use
cla reset;
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