1 | initial version |
It reminds me of this tutorial on watershed: marker-controlled-watershed-segmentation It uses morphological reconstruction though, which is not standard available in OpenCV. The following thread may be useful for this: morphological-reconstruction