Watershed oversegmentation on image with multiple touching blobs.
Show older comments
The MATLAB watershed algorithm I am applying on my image oversegments the blobs. I have tried multiple alternate approaches on this page ( https://www.mathworks.com/company/newsletters/articles/the-watershed-transform-strategies-for-image-segmentation.html ) without success. Here is a link to the Imgur Album containing the Black/White image and post-watershed image - http://imgur.com/a/Kw5CU
Code:
% BW contains the black/white image
D = -bwdist(~BW);
D(~BW) = -Inf;
L = watershed(D);
imshow(label2rgb(L, 'jet', 'w'));
Answers (1)
Daniel Cohen
on 7 Mar 2017
Edited: Daniel Cohen
on 7 Mar 2017
1 vote
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!