Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvFindContours
Module: | OpenCV |
---|
Finds the contours in a binary image.
Name | Type | Description | |
---|---|---|---|
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. | |
inMode | CvContourRetrievalMode | Contour retrieval mode. | |
inMethod | CvContourApproximationMethod | Contour approximation method. | |
inOffset | Location* | Offset by which every contour point is shifted. | |
outHierarchy | IntegerArrayArray | Output array containing information about the image topology. | |
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.