NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
ConnectedComponents.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
29 #ifndef DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
30 #define DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
31 
32 #include <dw/image/Image.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
41 typedef enum dwCCLAlgorithm {
44 
46  // within local 32x32 tiles
49 
53 typedef struct dwConnectedComponentsObject* dwConnectedComponentsHandle_t;
57 typedef struct dwConnectedComponentsObject* const dwConstConnectedComponentsHandle_t;
58 
78 
93 
107 
125 
147 
165 
192 
205 
218 
219 #ifdef __cplusplus
220 }
221 #endif
222 
223 #endif // DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
DW_CCL_ALGORITHM_BLOCK_UNION_FIND_LOCAL
@ DW_CCL_ALGORITHM_BLOCK_UNION_FIND_LOCAL
Similar to DW_CCL_ALGORITHM_BLOCK_UNION_FIND but the connected components are.
Definition: ConnectedComponents.h:47
Image.h
dwConnectedComponents_release
DW_API_PUBLIC dwStatus dwConnectedComponents_release(dwConnectedComponentsHandle_t ccl)
Releases connected components object.
dwConnectedComponents_initializeEx
DW_API_PUBLIC dwStatus dwConnectedComponents_initializeEx(dwConnectedComponentsHandle_t *ccl, dwImageProperties const *inputDesc, dwCCLAlgorithm const algorithm, dwContextHandle_t context)
@req{GID-AV_REQ-6774457}
dwConnectedComponents_getCUDAStream
DW_API_PUBLIC dwStatus dwConnectedComponents_getCUDAStream(cudaStream_t *stream, dwConnectedComponentsHandle_t ccl)
Returns CUDA stream where kernels are executed.
dwImageCUDA
Defines a CUDA image.
Definition: image/Image.h:559
dwConnectedComponents_bindInput
DW_API_PUBLIC dwStatus dwConnectedComponents_bindInput(dwImageCUDA const *image, dwConnectedComponentsHandle_t ccl)
@req{GID-AV_REQ-6774454}
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
dwImageProperties
Defines the properties of the image.
Definition: image/Image.h:523
dwConnectedComponents_reset
DW_API_PUBLIC dwStatus dwConnectedComponents_reset(dwConnectedComponentsHandle_t ccl)
Performs reset of connected components object.
dwConnectedComponents_setThreshold
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}
dwConstConnectedComponentsHandle_t
struct dwConnectedComponentsObject *const dwConstConnectedComponentsHandle_t
A constant pointer to the opaque handle for Connected Components.
Definition: ConnectedComponents.h:57
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
DW_CCL_ALGORITHM_BLOCK_UNION_FIND
@ DW_CCL_ALGORITHM_BLOCK_UNION_FIND
8-connection Block Union Find CCL based on https://ieeexplore.ieee.org/document/8798895
Definition: ConnectedComponents.h:43
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
dwConnectedComponents_setCUDAStream
DW_API_PUBLIC dwStatus dwConnectedComponents_setCUDAStream(cudaStream_t stream, dwConnectedComponentsHandle_t ccl)
Specifies CUDA stream where kernels are executed.
dwConnectedComponents_bindOutputLabels
DW_API_PUBLIC dwStatus dwConnectedComponents_bindOutputLabels(dwImageCUDA *labels, dwConnectedComponentsHandle_t ccl)
@req{GID-AV_REQ-6774455} @req{GID-AV_REQ-6774456}
dwCCLAlgorithm
dwCCLAlgorithm
Defines the available CCL algorithm.
Definition: ConnectedComponents.h:41
dwConnectedComponentsHandle_t
struct dwConnectedComponentsObject * dwConnectedComponentsHandle_t
A pointer to the opaque handle for Connected Components.
Definition: ConnectedComponents.h:53
dwConnectedComponents_process
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} @...