Start » Filter Reference » OpenCV » Miscellaneous Image Transformations » cvWatershed

cvWatershed


Module: OpenCV

Does marker-based image segmentation using watershed algorithm.

Name Type Description
Input value
inSrc Image UINT8, 3-channel input image.
Input value
inMarkers Image Input SInt32, single-channel image of markers.
Output value
outMarkers Image Output image of markers.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inMarkers must be 1-channel, SInt32 image in cvWatershed.
DomainError Input image must be 3-channel, UINT8 in cvWatershed.
DomainError The inSrc and inMarkers must have this same size.

Complexity Level

This filter is available on Basic Complexity Level.