How to show Image on GUI in matlab

  1. Add an “Axes” control on GUI. Change its tag to “axes_img”.  %% Tag in matlab GUI programming is used as function of name.
  2. Change property of "Axes” visible to “off” to avoid it appearing like an axes in the GUI before image is loaded.
  3. In some functions, like a button clicked, add code similar as below
    axes(handles.axes_img); % use the axes you put on GUI
    imshow('filename'); % display the image

Then an image is loaded where you put the axes control when you click the button.

Related Post

  • No Related Posts

No comments yet. Be the first.