Stop automatic resizing in axes

I use this code to load the image in the Matlab axis in gui:

[FileName,PathName] = uigetfile('*.jpg','PLease select an image');

axes(handles.axes1)
rgb = imread(strcat(PathName,FileName));
imagesc(200,200,rgb)

My problem is that when I load an image, the axes are automatically resized to the image size, is there any way to stop this? "I googled alot"!

and when it comes to large images (e.g. 1 MB), loading and displaying takes about 30 seconds !!! any workaround for faster loading?

I want to do edge detection for the loaded image and display it in the second axes, any sources / code for this?

I'm new to Matlap, can you help?

Thank.

+3
source share
1 answer

xlim() ylim(), matlab "XLimMode" "YLimMode" "", .

figure;
hold all;
xlim([1 2.5]);
ylim([3 4]);
plot([1 2], [3 4]);
plot([2 3], [3 4]);

matlab Image Processing Toolbox .

+6

All Articles