I am using the following code to display an image on an axis in a Matlab GUI.
This is distorting my image. (There is text on the image which becomes difficult to read). However it seems that Matlab is trying to keep the dimension ratio, because stretching the axis in one direction does not change the output of imshow at all.
I have tried using XData and YData to manually resize the jpeg, with limited success. If I open the jpeg directly, it looks perfect, so it must be something Matlab is doing.
Does anyone have any suggestions? I don't really have a firm grasp on what Matlab is doing when I call the imshow function, so please point out of I'm completely off-base. Thanks.