Cv2Watershed Method OpenCvSharp Class Library
Performs a marker-based image segmentation using the watershed algorithm.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Watershed(
	InputArray image,
	InputOutputArray markers
)

Parameters

image
Type: OpenCvSharp.CPlusPlusInputArray
Input 8-bit 3-channel image.
markers
Type: OpenCvSharp.CPlusPlusInputOutputArray
Input/output 32-bit single-channel image (map) of markers. It should have the same size as image.
See Also

Reference