Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvConnectedComponentsWithStats
Module: | OpenCV |
---|
Computes the connected components labeled image of boolean image and also produces a statistics output for each label
Name | Type | Description | |
---|---|---|---|
inSrc | Image | ||
inConnectivity | RegionConnectivity | ||
outLabeledImage | Image | ||
outStats | CvConnectedComponentsTypesArray | ||
outCentroids | Point2DArray |
Requirements
For input inSrc only pixel formats are supported: 1⨯uint8.
Read more about pixel formats in Image documentation.
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 | inSrc must be a single channel image wit UInt8 or Int8 pixel type in cvConnectedComponents. |
DomainError | Not supported inSrc pixel format in AvsFilter_cvConnectedComponentsWithStats. Supported formats: 1xUInt8. |
Complexity Level
This filter is available on Basic Complexity Level.