DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

FeatureDescriptor.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) 2021 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 
46 #ifndef DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
47 #define DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
48 
49 #include <dw/core/Config.h>
50 #include <dw/core/base/Exports.h>
52 #include <dw/core/base/Types.h>
53 #include <dw/image/Image.h>
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
62 typedef struct dwFeature2DDescriptorObject* dwFeature2DDescriptorHandle_t;
63 
65 typedef struct dwFeature2DDescriptorObject const* dwConstFeature2DDescriptorHandle_t;
66 
68 typedef enum {
73 
78 {
80  dwFeature2DDescriptorAlgorithm algorithm;
81 
83  uint32_t imageWidth;
84 
86  uint32_t imageHeight;
87 
89  uint32_t maxFeatureCount;
90 
95 
97 
102  // GPU Async stage
104  // CPU preprocess
106  // PVA Process
108  // CPU Post process
113 
122 
135 dwStatus dwFeature2DDescriptor_initialize(dwFeature2DDescriptorHandle_t* obj,
136  const dwFeature2DDescriptorConfig* config,
137  cudaStream_t cudaStream,
138  dwContextHandle_t context);
139 
149 dwStatus dwFeature2DDescriptor_reset(dwFeature2DDescriptorHandle_t obj);
150 
164 dwStatus dwFeature2DDescriptor_release(dwFeature2DDescriptorHandle_t obj);
165 
178 dwStatus dwFeature2DDescriptor_setCUDAStream(cudaStream_t stream, dwFeature2DDescriptorHandle_t obj);
179 
190 dwStatus dwFeature2DDescriptor_getCUDAStream(cudaStream_t* stream, dwFeature2DDescriptorHandle_t obj);
191 
207  dwFeature2DDescriptorHandle_t obj);
208 
223  dwFeatureArray* features,
224  dwFeature2DDescriptorHandle_t obj);
225 
239  dwFeature2DDescriptorHandle_t obj);
240 
241 #ifdef __cplusplus
242 }
243 #endif
244 
245 #endif // DW_IMAGEPROCESSING_FEATURE_DESCRIPTOR_H_
NVIDIA DriveWorks API: Core Types
dwFeature2DDescriptorAlgorithm algorithm
Detecting algorithm defined by dwFeature2DDescriptorType
dwProcessorType processorType
for DW_FEATURE2D_DESCRIPTOR_ALGORITHM_ORB only set to DW_PROCESSOR_TYPE_PVA_0 to call PVA orb descrip...
uint32_t imageWidth
Width of the images that the Descriptor runs on.
struct dwImageObject * dwImageHandle_t
Definition: Image.h:105
dwFeature2DDescriptorStage
The stage of feature descriptor.
uint32_t maxFeatureCount
Upper bound on number of features handled.
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindOutput(dwFeatureDescriptorArray *outputDescriptors, dwFeature2DDescriptorHandle_t obj)
Binds output dwFeatureDescriptorArray to descriptor object.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwFeature2DDescriptorAlgorithm
Feature descriptor algorithm.
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_getCUDAStream(cudaStream_t *stream, dwFeature2DDescriptorHandle_t obj)
Gets the CUDA stream used by the feature descriptor.
dwStatus
Status definition.
Definition: Status.h:180
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_setCUDAStream(cudaStream_t stream, dwFeature2DDescriptorHandle_t obj)
Sets the CUDA stream for CUDA related operations.
dwProcessorType
Processor type definitions.
Definition: Types.h:161
struct dwFeature2DDescriptorObject const * dwConstFeature2DDescriptorHandle_t
Handle representing a const feature descriptor.
uint32_t imageHeight
Height of the images that the descriptor runs on.
Process the postprocess part of the feature descriptor pipeline on CPU.
NVIDIA DriveWorks API: Pyramid
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_reset(dwFeature2DDescriptorHandle_t obj)
Resets a feature descriptor.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:79
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initDefaultParams(dwFeature2DDescriptorConfig *params)
Initializes dwFeature2DDescriptor parameters with default values.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_release(dwFeature2DDescriptorHandle_t obj)
Releases the feature descriptor.
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_initialize(dwFeature2DDescriptorHandle_t *obj, const dwFeature2DDescriptorConfig *config, cudaStream_t cudaStream, dwContextHandle_t context)
Creates and initializes a feature descriptor.
NVIDIA DriveWorks API: Feature Array and Feature History Array
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_processImage(dwFeature2DDescriptorStage stage, dwFeature2DDescriptorHandle_t obj)
Do detections on the image bound by dwFeature2DDescriptor_bindInputImage, output will be written to d...
struct dwFeature2DDescriptorObject * dwFeature2DDescriptorHandle_t
Handle representing a feature descriptor.
#define DW_API_PUBLIC
Definition: Exports.h:54
Holds configuration parameters for a feature descriptor.
NVIDIA DriveWorks API: Core Exports
DW_API_PUBLIC dwStatus dwFeature2DDescriptor_bindInputBuffers(dwImageHandle_t image, dwFeatureArray *features, dwFeature2DDescriptorHandle_t obj)
Binds input parameters to descriptor object.