How can I view an undistorted JPG file in MATLAB?
Afficher commentaires plus anciens
All that I want to do is view my original picture (saved as a JPG file) in MATLAB. Here is the code I am using:
img = imread('MyPicture.JPG');
image(img);
However, instead of displaying the exact version of the picture, MATLAB distorts it by shrinking the width. The original picture is, admittedly, abnormally wide (dimensions = 3172 x 972). How can I display the original picture without any distortions?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!