DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

RoadMarkClassifier.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_ROADMARK_CLASSIFIER_H__
49 #define DW_ROADMARK_CLASSIFIER_H__
50 
51 #include <dw/core/Context.h>
52 #include <dw/dnn/DNN.h>
53 #include <dw/dnn/DataConditioner.h>
54 #include <dw/image/Image.h>
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
62 // Enum mapping for the type of temporal smoothing in road marking classification
63 typedef enum {
67 
68 // Input parameters for roadmark classifier
70 {
73 
75 
78 typedef struct dwRoadMarkClassifierObject* dwRoadMarkClassifierHandle_t;
79 
89 
101 dwStatus dwRoadMarkClassifier_initializeFromRoadMarkNet(dwRoadMarkClassifierHandle_t* obj, dwRoadMarkNetHandle_t roadMarkNet, const dwRoadMarkClassifierParams* classifierParams, dwContextHandle_t ctx);
102 
111 dwStatus dwRoadMarkClassifier_reset(dwRoadMarkClassifierHandle_t obj);
112 
123 dwStatus dwRoadMarkClassifier_release(dwRoadMarkClassifierHandle_t obj);
124 
134 dwStatus dwRoadMarkClassifier_setCUDAStream(cudaStream_t stream, dwRoadMarkClassifierHandle_t obj);
135 
145 dwStatus dwRoadMarkClassifier_getCUDAStream(cudaStream_t* stream, dwRoadMarkClassifierHandle_t obj);
146 
156 dwStatus dwRoadMarkClassifier_setThreshold(float32_t threshold, dwRoadMarkClassifierHandle_t obj);
157 
167 dwStatus dwRoadMarkClassifier_getThreshold(float32_t* threshold, dwRoadMarkClassifierHandle_t obj);
168 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #endif // DW_ROADMARK_CLASSIFIER_H__
dwRoadMarkClassifierSmoothingType smoothingType
float float32_t
Specifies POD types.
Definition: Types.h:70
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_setThreshold(float32_t threshold, dwRoadMarkClassifierHandle_t obj)
Sets the classification threshold to be used.
NVIDIA DriveWorks API: RoadMarkNet Module
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_getThreshold(float32_t *threshold, dwRoadMarkClassifierHandle_t obj)
Gets the classification threshold used.
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_reset(dwRoadMarkClassifierHandle_t obj)
Resets RoadMarkClassifier.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_initDefaultParams(dwRoadMarkClassifierParams *classifierParams)
Initializes default params values for dwRoadMarkClassifier.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
struct dwRoadMarkNetObject * dwRoadMarkNetHandle_t
Handle to a RoadMarkNet object.
Definition: RoadMarkNet.h:63
NVIDIA DriveWorks API: DNN Methods
dwStatus
Status definition.
Definition: Status.h:178
NVIDIA DriveWorks API: Data Conditioner Methods
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_release(dwRoadMarkClassifierHandle_t obj)
Releases the RoadMarkClassifier module.
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_getCUDAStream(cudaStream_t *stream, dwRoadMarkClassifierHandle_t obj)
Gets the CUDA stream used.
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_setCUDAStream(cudaStream_t stream, dwRoadMarkClassifierHandle_t obj)
Sets the CUDA stream to be used.
struct dwRoadMarkClassifierObject * dwRoadMarkClassifierHandle_t
Handle to a RoadMark classifier.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
NVIDIA DriveWorks API: Landmark Detector Methods
DW_API_PUBLIC dwStatus dwRoadMarkClassifier_initializeFromRoadMarkNet(dwRoadMarkClassifierHandle_t *obj, dwRoadMarkNetHandle_t roadMarkNet, const dwRoadMarkClassifierParams *classifierParams, dwContextHandle_t ctx)
Initializes RoadMarkClassifier module with a RoadMarkNet DNN inference module.
dwRoadMarkClassifierSmoothingType
#define DW_API_PUBLIC
Definition: Exports.h:56