imshow - Stretching image to fill axis
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to display an image on an axis within a GUI. I'm using the imshow function, but it keeps the dimension ratio of the image. I would like to stretch the image, ignoring the dimension ratio, to fill the axis. Any suggestions?
Thanks, Matt
0 commentaires
Réponse acceptée
Image Analyst
le 13 Jan 2013
Modifié(e) : Image Analyst
le 14 Jan 2013
You can display with imshow() and use the 'XData' and 'YData' property. For example:
imshow(grayImage, [], 'XData', [0 .5], 'YData', [0 .1]);
2 commentaires
Plus de réponses (1)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!