NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 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 struct dwConnectedComponentsObject* dwConnectedComponentsHandle_t;
45 typedef struct dwConnectedComponentsObject* const dwConstConnectedComponentsHandle_t;
46 
64  dwImageProperties const* inputDesc,
65  dwContextHandle_t context);
66 
83  dwImageProperties const* inputDesc,
84  dwContextHandle_t context);
85 
100 
114 
131 
149 
165 
183 
196 
209 
210 #ifdef __cplusplus
211 }
212 #endif
213 
214 #endif // DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
dwConnectedComponents_initializeMinimal
DW_API_PUBLIC dwStatus dwConnectedComponents_initializeMinimal(dwConnectedComponentsHandle_t *ccl, dwImageProperties const *inputDesc, dwContextHandle_t context)
Initialize the module with limited functionality to produce connected components within local tiles.
dwConnectedComponents_release
DW_API_PUBLIC dwStatus dwConnectedComponents_release(dwConnectedComponentsHandle_t ccl)
Releases connected components object.
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.h:508
dwConnectedComponents_initialize
DW_API_PUBLIC dwStatus dwConnectedComponents_initialize(dwConnectedComponentsHandle_t *ccl, dwImageProperties const *inputDesc, dwContextHandle_t context)
Initializes connected components.
dwConnectedComponents_bindInput
DW_API_PUBLIC dwStatus dwConnectedComponents_bindInput(dwImageCUDA const *image, dwConnectedComponentsHandle_t ccl)
Specifies input image to be processed.
dwImageProperties
Defines the properties of the image.
Definition: Image.h:477
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)
Specifies threshold to binarize input image.
dwConstConnectedComponentsHandle_t
struct dwConnectedComponentsObject *const dwConstConnectedComponentsHandle_t
A constant pointer to the opaque handle for Connected Components.
Definition: ConnectedComponents.h:45
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
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)
Specifies output label image for ccl algorithm.
dwConnectedComponentsHandle_t
struct dwConnectedComponentsObject * dwConnectedComponentsHandle_t
A pointer to the opaque handle for Connected Components.
Definition: ConnectedComponents.h:41
dwConnectedComponents_process
DW_API_PUBLIC dwStatus dwConnectedComponents_process(dwConnectedComponentsHandle_t ccl)
Performs image labeling.