Implements one of the variants of watershed, non-parametric marker-based segmentation algorithm, described in [Meyer92] Before passing the image to the function, user has to outline roughly the desired regions in the image markers with positive (>0) indices, i.e. every region is represented as one or more connected components with the pixel values 1, 2, 3 etc. Those components will be "seeds" of the future image regions. All the other pixels in markers, which relation to the outlined regions is not known and should be defined by the algorithm, should be set to 0's. On the output of the function, each pixel in markers is set to one of values of the "seed" components, or to -1 at boundaries between the regions.
Namespace: Emgu.CVAssembly: Emgu.CV
(in Emgu.CV.dll) Version: 220.127.116.117 (18.104.22.1687)
public static void cvWatershed(
Public Shared Sub cvWatershed ( _
image As IntPtr, _
markers As IntPtr _
static void cvWatershed(