From: eduardo on
Hi mates!
I´m acquiring images with my webcam and I´m displayng them in a GUI. The images are being displayed in an axis as I lerned with you ;) .
Now I´ve to crop the image.
Imagine that the original image has 100x100 px (this way the axis will have the same width and height as the image to avoid distortions) , and the cropped has 50x50 px. My question is how can I resize the existent axis from 100x100 px to 50x50 px ?

I tried :

set(gca,'position',[0,0,50,50])

But it didn´t work as I want, because it distorts the image :(
I´m wondering if this is not caused by different units: the axis size is also measured in px ? or in cm or another unit?

Could you help me?

Best
Eduardo