Filter löschen
Filter löschen

Fit big image to small axes in GUI

3 Ansichten (letzte 30 Tage)
Lluis Roca
Lluis Roca am 15 Okt. 2013
Kommentiert: Lluis Roca am 16 Okt. 2013
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.

Akzeptierte Antwort

Image Analyst
Image Analyst am 15 Okt. 2013
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 Kommentare
Image Analyst
Image Analyst am 16 Okt. 2013
Bearbeitet: Image Analyst am 16 Okt. 2013
use
cla reset;
Lluis Roca
Lluis Roca am 16 Okt. 2013
thx as always

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by