Back to Aurora Vision Studio website

You are here: Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvConnectedComponentsWithStats

cvConnectedComponentsWithStats


Module: OpenCV

Computes the connected components labeled image of boolean image and also produces a statistics output for each label

Name Type Description
Input value inSrc Image
Input value inConnectivity RegionConnectivity
Output value outLabeledImage Image
Output value outStats CvConnectedComponentsTypesArray
Output value 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.