DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

ConnectedComponents.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2019-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
46#ifndef DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
47#define DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
48
49#include <dw/image/Image.h>
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
58typedef struct dwConnectedComponentsObject* dwConnectedComponentsHandle_t;
62typedef struct dwConnectedComponentsObject* const dwConstConnectedComponentsHandle_t;
63
77 dwImageProperties const* inputDesc,
78 dwContextHandle_t context);
79
92 dwImageProperties const* inputDesc,
93 dwContextHandle_t context);
94
105
115
128
142
154
168
177
186
187#ifdef __cplusplus
188}
189#endif
191#endif // DW_IMAGEPROCESSING_CONNECTED_COMPONENTS_H_
dwStatus
Status definition.
Definition: ErrorDefs.h:44
DW_API_PUBLIC dwStatus dwConnectedComponents_release(dwConnectedComponentsHandle_t ccl)
Releases connected components object.
DW_API_PUBLIC dwStatus dwConnectedComponents_setCUDAStream(cudaStream_t stream, dwConnectedComponentsHandle_t ccl)
Specifies CUDA stream where kernels are executed.
DW_API_PUBLIC dwStatus dwConnectedComponents_initialize(dwConnectedComponentsHandle_t *ccl, dwImageProperties const *inputDesc, dwContextHandle_t context)
Initializes connected components.
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.
DW_API_PUBLIC dwStatus dwConnectedComponents_process(dwConnectedComponentsHandle_t ccl)
Performs image labeling.
struct dwConnectedComponentsObject * dwConnectedComponentsHandle_t
A pointer to the opaque handle for Connected Components.
DW_API_PUBLIC dwStatus dwConnectedComponents_bindOutputLabels(dwImageCUDA *labels, dwConnectedComponentsHandle_t ccl)
Specifies output label image for ccl algorithm.
DW_API_PUBLIC dwStatus dwConnectedComponents_setThreshold(uint8_t threshold, dwConnectedComponentsHandle_t ccl)
Specifies threshold to binarize input image.
DW_API_PUBLIC dwStatus dwConnectedComponents_reset(dwConnectedComponentsHandle_t ccl)
Performs reset of connected components object.
struct dwConnectedComponentsObject *const dwConstConnectedComponentsHandle_t
A constant pointer to the opaque handle for Connected Components.
DW_API_PUBLIC dwStatus dwConnectedComponents_bindInput(dwImageCUDA const *image, dwConnectedComponentsHandle_t ccl)
Specifies input image to be processed.
DW_API_PUBLIC dwStatus dwConnectedComponents_getCUDAStream(cudaStream_t *stream, dwConnectedComponentsHandle_t ccl)
Returns CUDA stream where kernels are executed.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
#define DW_API_PUBLIC
Definition: Exports.h:56
Defines a CUDA image.
Definition: Image.h:523
Defines the properties of the image.
Definition: Image.h:492
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality