pub fn watershed_markers(
topography: GrayView<'_>,
markers: &[u16],
out_labels: &mut [u16],
) -> Result<(), CvError>Expand description
Marker-controlled watershed.
topography: elevation (low = basin).markers: same length as image; non-zero seeds grow their label.out_labels: caller buffer, length ≥ width×height; receives final labels (0 = background / watershed line).