This example shows how to save the binary mask image you created using the Image Segmenter app.
Click Export and select Export Images.
In the Export to Workspace dialog box, you can assign names to the final segmentation mask image and the segmented version of the original image.
To get the MATLAB® code the app used to segment the image, click Export and select the Generate Function option. The app opens the MATLAB editor containing a function with the code required to segment the image.