How to manually adjust after automated segmentation?

I am using the Image Segmenter App and I use the Graph Cut or another automated Segmentation feature. I then want to go back and manually fix it up. Is this possible?

>> coins = imread('coins.png');
>> imageSegmenter(coins)

Select Graph Cut, Mark Foreground and background and then Create Mask

 Accepted Answer

Once the mask is created, all the Add to Mask tools (such as draw freehand) can be accessed to add to the foreground.
If you would like to change some of the foreground to become background, follow the steps below:
- Select the dropdown under Refine Mask and select Invert Mask
- Use an Add to Mask tool (such as draw freehand) to add to the background
- Invert the mask again

More Answers (0)

Products

Release

R2018a

Community Treasure Hunt

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

Start Hunting!