Export image from image segmenter and maintain the original image

조회 수: 8 (최근 30일)
Hazwani Mohmad Ramli
Hazwani Mohmad Ramli 2020년 12월 16일
댓글: Hazwani Mohmad Ramli 2020년 12월 18일
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
Hazwani Mohmad Ramli 2020년 12월 18일
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