Defines 2D Connected Components Labeling algorithm.
Typedefs | |
| typedef enum dwCCLAlgorithm | dwCCLAlgorithm |
| Defines the available CCL algorithm. More... | |
| typedef struct dwConnectedComponentsObject * | dwConnectedComponentsHandle_t |
| A pointer to the opaque handle for Connected Components. More... | |
| typedef struct dwConnectedComponentsObject *const | dwConstConnectedComponentsHandle_t |
| A constant pointer to the opaque handle for Connected Components. More... | |
Enumerations | |
| enum | dwCCLAlgorithm { DW_CCL_ALGORITHM_BLOCK_UNION_FIND = 0, DW_CCL_ALGORITHM_BLOCK_UNION_FIND_LOCAL = 1 } |
| Defines the available CCL algorithm. More... | |
| typedef enum dwCCLAlgorithm dwCCLAlgorithm |
Defines the available CCL algorithm.
| typedef struct dwConnectedComponentsObject* dwConnectedComponentsHandle_t |
A pointer to the opaque handle for Connected Components.
Definition at line 53 of file ConnectedComponents.h.
| typedef struct dwConnectedComponentsObject* const dwConstConnectedComponentsHandle_t |
A constant pointer to the opaque handle for Connected Components.
Definition at line 57 of file ConnectedComponents.h.
| enum dwCCLAlgorithm |
Defines the available CCL algorithm.
| Enumerator | |
|---|---|
| DW_CCL_ALGORITHM_BLOCK_UNION_FIND | 8-connection Block Union Find CCL based on https://ieeexplore.ieee.org/document/8798895 |
| DW_CCL_ALGORITHM_BLOCK_UNION_FIND_LOCAL | Similar to DW_CCL_ALGORITHM_BLOCK_UNION_FIND but the connected components are. |
Definition at line 41 of file ConnectedComponents.h.
| DW_API_PUBLIC dwStatus dwConnectedComponents_bindInput | ( | dwImageCUDA const * | image, |
| dwConnectedComponentsHandle_t | ccl | ||
| ) |
@req{GID-AV_REQ-6774454}
Specifies input image to be processed
| [in] | image | A pointer to input image |
| [in] | ccl | Specifies the opaque connected components handle |
ccl handle is NULL| DW_API_PUBLIC dwStatus dwConnectedComponents_bindOutputLabels | ( | dwImageCUDA * | labels, |
| dwConnectedComponentsHandle_t | ccl | ||
| ) |
@req{GID-AV_REQ-6774455} @req{GID-AV_REQ-6774456}
Specifies output label image for ccl algorithm
| [in] | labels | A pointer to output image containing labels |
| [in] | ccl | Specifies the opaque connected components handle |
ccl handle is NULL| DW_API_PUBLIC dwStatus dwConnectedComponents_getCUDAStream | ( | cudaStream_t * | stream, |
| dwConnectedComponentsHandle_t | ccl | ||
| ) |
Returns CUDA stream where kernels are executed.
| [in] | stream | Specifies pointer where cuda stream will be returned. Should not be NULL |
| [in] | ccl | Specifies the opaque connected components handle |
| DW_API_PUBLIC dwStatus dwConnectedComponents_initializeEx | ( | dwConnectedComponentsHandle_t * | ccl, |
| dwImageProperties const * | inputDesc, | ||
| dwCCLAlgorithm const | algorithm, | ||
| dwContextHandle_t | context | ||
| ) |
@req{GID-AV_REQ-6774457}
Initializes connected components using the faster block-based Union Find algorithm. Must be initialized in a thread with valid CUDA context
| [out] | ccl | A pointer to the opaque connected components handle |
| [in] | inputDesc | Description of input image |
| [in] | context | Specifies the opaque handle of a dwContext |
| DW_API_PUBLIC dwStatus dwConnectedComponents_process | ( | dwConnectedComponentsHandle_t | ccl | ) |
@req{GID-AV_REQ-6774458} @req{GID-AV_REQ-6774459} @req{GID-AV_REQ-6774460} @req{GID-AV_REQ-6774462} @req{GID-AV_REQ-6774463} @req{GID-AV_REQ-6774464} @req{GID-AV_REQ-6774465} @req{GID-AV_REQ-6774466} @req{GID-AV_REQ-6774467}
Performs image labeling
| [in] | ccl | Specifies the opaque connected components handle |
ccl handle is NULL| DW_API_PUBLIC dwStatus dwConnectedComponents_release | ( | dwConnectedComponentsHandle_t | ccl | ) |
Releases connected components object.
| [in] | ccl | A pointer to the opaque connected components handle |
| DW_API_PUBLIC dwStatus dwConnectedComponents_reset | ( | dwConnectedComponentsHandle_t | ccl | ) |
Performs reset of connected components object.
| [in] | ccl | Specifies the opaque connected components handle |
ccl handle is NULL| DW_API_PUBLIC dwStatus dwConnectedComponents_setCUDAStream | ( | cudaStream_t | stream, |
| dwConnectedComponentsHandle_t | ccl | ||
| ) |
Specifies CUDA stream where kernels are executed.
| [in] | stream | Specifies cuda stream |
| [in] | ccl | Specifies the opaque connected components handle |
| DW_API_PUBLIC dwStatus dwConnectedComponents_setThreshold | ( | uint8_t | threshold, |
| dwConnectedComponentsHandle_t | ccl | ||
| ) |
@req{GID-AV_REQ-6774458} @req{GID-AV_REQ-6774459} @req{GID-AV_REQ-6774460} @req{GID-AV_REQ-6774461}
Specifies threshold to binarize input image
| [in] | threshold | - 8-bit unsigned integer threshold value |
| [in] | ccl | Specifies the opaque connected components handle |
ccl handle is NULL