How to fill a segmented region of an image with color?
조회 수: 4 (최근 30일)
이전 댓글 표시
I have used the code MagicWand provided by ImageAnalyst (Huge Thanks btw!) to apply Region Growing segmentation on an image, and applied Active Contour on the result, like this:
Where imageArray is this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/837500/image.png)
With selecting a particular seed point, the image after applying Region Growing method, the outputImage looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/837505/image.png)
And after applying Active Contour Method like this:
acimg=activecontour(imageArray,outputImage,iteration,'Chan-Vese');
The output looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/837510/image.png)
Now, I want to fill the segmented region with white, so it looks something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/837515/image.png)
But I don't want a overlayed image. Can I extract a single image file (Like imageArray or outputImage so that I can use it for further operation) from it?
Thanks in advance!
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!