From: eduardo on 29 Apr 2010 19:43 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
|
Pages: 1 Prev: White Gaussian Noise Next: anovan with random effects and continuous predictors |