Saving an image in matlab with same dimension (250 x 250)

While saving an image in matlab using .tif or .jpg or etc etc extensions when i try to read that file using imread option the dimensions are changed.
Example:-
In matlab a figure shows dimension of (250 x 250) i saved it using .png or etc etc next when i tried to read that file for furthur implementation the dimensions are changed to (1364 x 1246) so
HOW TO MAINTAIN THE IMAGES WITH SAME DIMENSION (250 x 250)???

5 commentaires

If possible give a sample image..it'll be easier to understand the problem.
Also include the code that you are using to save the image (or is it a figure?) to a file.
this is the image having dimension 250 x 250 i saved it by clicking on save option which is just below edit option but file is not saved with 250 x 250 dimension its more 1260 x 1045 help me </matlabcentral/answers/uploaded_files/28669/image.png>
Geoff i saved it using the button below edit option which i showed in this previous image .thnxx

Connectez-vous pour commenter.

Réponses (1)

Ingrid
Ingrid le 8 Avr 2015

0 votes

do you know this submission on the matlab file exchange
it is a very good function to tackle these kind of problems and I always use it to save figures instead of the built-in options

Catégories

En savoir plus sur Convert Image Type 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!

Translated by