Export image from image segmenter and maintain the original image

6 次查看(过去 30 天)
I want to export this image from image segmenter to my computer while maintain the original image. what should I do?

回答(1 个)

Subhadeep Koley
Subhadeep Koley 2020-12-16
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 个评论
Hazwani Mohmad Ramli
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.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by