Effacer les filtres
Effacer les filtres

Fit big image to small axes in GUI

3 vues (au cours des 30 derniers jours)
Lluis Roca
Lluis Roca le 15 Oct 2013
Commenté : Lluis Roca le 16 Oct 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.

Réponse acceptée

Image Analyst
Image Analyst le 15 Oct 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 commentaires
Image Analyst
Image Analyst le 16 Oct 2013
Modifié(e) : Image Analyst le 16 Oct 2013
Lluis Roca
Lluis Roca le 16 Oct 2013
thx as always

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by