Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvFindContours

cvFindContours


Module: OpenCV

Finds the contours in a binary image.

Name Type Description
Input value
inImage Image Source, an UINT8 single-channel image. Non-zero pixels are treated as 1's. Zero pixels remain 0's, so the image is treated as binary.
Input value
inMode CvContourRetrievalMode Contour retrieval mode.
Input value
inMethod CvContourApproximationMethod Contour approximation method.
Input value
inOffset Location* Offset by which every contour point is shifted.
Output value
outHierarchy IntegerArrayArray Output array containing information about the image topology.
Output value
outContours PathArray Detected contours.

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 Input image must be Int32 single-channel in cvFindContours.
DomainError Input image must be Uint8 single-channel in cvFindContours.

Complexity Level

This filter is available on Basic Complexity Level.