How can I view an undistorted JPG file in MATLAB?

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?

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Nov. de 2014

Comentada:

el 7 de Nov. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by