Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have a look at watershed segmentation in combination with distance transform. There are many examples on the interwebz. Here is one in OpenCV and python: watershed

Most common steps: - Use automatic global thresholding such as Otsu - Erode this, distance transform and threshold it to get sure foreground - Dilate it to get sure background - Do watershed segmentation using the sure fore- and background