How to change the size using imshow?

30 vues (au cours des 30 derniers jours)
TAY
TAY le 17 Nov 2014
I have an image data which is 512x256 and I want to display that image data using imshow and set the parent property to an axes I have created which is 300x300. The problem is when I display the image data the result image shows on the axes is smaller. Is there any method to solve this problems?
Thanks in advance for the helps!!

Réponses (2)

Image Analyst
Image Analyst le 19 Nov 2014
imshow will fit the image to the axes. If you don't want that, then use a scrollpanel. See attached demo.

Siam
Siam le 17 Nov 2014
You can try this
x=imresize(x,([300 300]));
figure, imshow(x);
  1 commentaire
TAY
TAY le 19 Nov 2014
it is still the same

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by