Detecting watershed oversegmentation errors

4 次查看(过去 30 天)
Hi,
My watershed algorithm sometimes oversegments two objects when it should pick up one. I am tracking these objects in a sequence of images from frame to frame and have been stuck for a little while on trying to write a code to detect this error and predict the frames in which it happens.
The attached watershed image shows two examples of this. So far, I have tried to see if the error is discernible by measuring area, perimeter, and displacement of centroid, but none of those properties seem linearly separable (see attached scatter plots). Is there anything else I could try to get the computer to be able to flag these while tracking?
I would really appreciate any tips and suggestions! This has been something I've been trying to iron out for a while now.
Thanks!

回答(1 个)

Pratyush Roy
Pratyush Roy 2020-9-30
The over-segmentation of the Watershed algorithm may be resolved by using the 'imhmin' function prior to using the 'watershed' function, as this would remove shallow minima from the image.
Please refer to the following link for more information on the 'imhmin' and 'watershed' function:
As an alternative, you may also use the 'imextendedmin' function prior to using the 'watershed' function, as demonstrated in the article below:
  1 个评论
Veena Chatti
Veena Chatti 2020-10-1
Hi Pratyush,
Thanks for your suggestions. I'm already using the imhmin function and will also try imextendedmin.
Here's the issue: The entire image is about ten times the size of the screenshot, so there are about 200-250 objects. If I re-run the watershed on all of them, there's a risk of introducing further errors. I'll need to fix it in the smaller patches where there are errors.
Do you know how to find a way to click on the objects that weren't correctly detected and ask it to re-run the watershed on just those? I can detect both error types with better pattern recognition models now.
Thanks!
Veena

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by