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 Comments

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

Sign in to comment.

Answers (1)

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

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 7 Apr 2015

Answered:

on 8 Apr 2015

Community Treasure Hunt

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

Start Hunting!