Performs a marker-based image segmentation using the watershed algorithm.
imout = imwatershed(imin)
Input 8-bit 3-channel image.
Double precision single-channel image (map) of markers. It should have the same size as image.
Output labelled image
The function implements one of the variants of watershed, non-parametric marker-based segmentation algorithm.
1. OpenCV 4.1.2 Online Documentation