For this specific use case, you can try out "active contour" based segmentation technique. The following documentation link has the description of the function and an example for the same : Activecontour
Hope this helps
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!