Export image from image segmenter and maintain the original image

I want to export this image from image segmenter to my computer while maintain the original image. what should I do?

Answers (1)

1) Click on the "Export" button and then click on "Export Images"
2) Save the Final Segmentation mask with the name BW, click on "OK"
3) Go to MATLAB command window and execute
overlayedImg = imoverlay(originalImg, BW); % Here originalImg contains your original image data
4) Write the overlayedImg to your computer using
imwrite(overlayedImg, 'overlayedImage.png');

1 Comment

I have try using this code but the image saved like this. I want to export the original that show the segmented ROI. The yellow color.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!