watershed function
Watershed performs a marker-based image segmentation using the watershed algorithm.
For further details, please see: https:///docs.opencv.org/4.x/d3/d47/group__imgproc__segmentation.html#ga3267243e4d3f95165d55a618c65ac6e1
Implementation
Mat watershed(InputArray image, InputOutputArray markers) {
cvRun(() => cffi.Watershed(image.ref, markers.ref));
return markers;
}