How do I prevent the deformation of an image in the axes?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Youri Miessen
le 19 Déc 2017
Commenté : Image Analyst
le 19 Déc 2017
I am using the imread() and image() functions to read and display the image, but it keeps deforming the image because the axes size (square) hasn't the same dimensions as the image. It is important that I use axes for other functions.
This is the code I already have:
if true
[filename,pathname] = uigetfile({'*.jpg';'*.JPEG';'*.GIF';'*.png'}, 'File selector');
image(imread([pathname filename]));
end


0 commentaires
Réponse acceptée
Image Analyst
le 19 Déc 2017
Try
axis equal
2 commentaires
Image Analyst
le 19 Déc 2017
OK, if you've got the solution, then can you please "Accept this answer"?
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!