MATLAB: How to save image in axes gui

askuiputfile

hello..
i'm have a image in axes1 gui
how to save the image with uiputfile button..

Best Answer

  1. Call uigetfile() to get the input filename.
  2. Call imread() to read the input image from the disk into a variable in memory.
  3. Process the image in whatever way you want.
  4. Call imshow() to display the image in the axes.
  5. Call uiputfile() to get an output filename.
  6. Call imwrite() to save the image to disk.
If your image has annotation in the overlay (arrows, text, etc.) then use export_fig() - see the File Exchange. It's the first one you see on the File Exchange screen because it's the most downloaded function of all.