MATLAB: Adjust axes as the loaded image size.

axesImage Processing Toolbox

I want to load different size of images on axes. I want to know that When image is loaded, how the size of axes is adjusted as the size of loaded image.

Best Answer

  • It does its best to adjust the size of the displayed image given the initial size of the axes and the size and aspect ratio of the image being displayed. I don't know the exact algorithm. If you want fixed axes sizes, and fixed magnification then you can set up those with calls to set() and imshow() respectively.