MATLAB: How to segmented the attached image

areaimage segmentationMATLABperimeter

I want the segmented area bounded inside by the green boundary. How can I get it?

Best Answer

See the attached demo, which gives the image below. Be sure to change the name of the image file before you run it.