46 #ifndef DW_IMAGEPROCESSING_FEATURE_LIST_H_ 47 #define DW_IMAGEPROCESSING_FEATURE_LIST_H_ 172 const uint32_t maxFeatureCount,
218 cudaStream_t stream);
236 const uint32_t maxFeatureCount,
237 const uint32_t maxHistoryCapacity,
313 const uint32_t historyIdx,
333 cudaStream_t stream);
352 const uint32_t* d_newToOldMapC2B,
353 const uint32_t* d_newToOldMapB2A,
354 const uint32_t* d_newToOldMapCount,
355 const uint32_t maxFeatureCount,
356 cudaStream_t stream);
362 #endif // DW_IMAGEPROCESSING_FEATURE2D_LIST_H_ NVIDIA DriveWorks API: Core Types
uint32_t timeIdx
Time index, 0 means latest, N means N frames earlier to latest.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
Holds pointers to the data exposed by a feature2d list.
dwFeature2DStatus * statuses
Status of each feature.
float float32_t
Specifies POD types.
A feature with this entry is garbage.
uint32_t maxFeatures
Max number of features in one timeIdx.
Defines a two-element single-precision floating-point vector.
dwVector2f * locationHistory
Location history of feature points.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_get(dwFeatureArray *featureArray, const uint32_t historyIdx, dwFeatureHistoryArray *featureHistoryArray)
Get the feature snapshot(arraySize = maxFeatureCount) historyIdx-th frame earlier.
uint32_t * featureCount
Total number of feature points.
uint8_t * data
Pointer to the raw data address.
uint32_t * ages
Age of each feature.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getCurrent(dwFeatureArray *featureArray, dwFeatureHistoryArray *featureHistoryArray)
Get the latest feature snapshot(arraySize = maxFeatureCount) from history.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_destroy(dwFeatureHistoryArray featureHistoryArray)
Destroys the featureHistoryArray and frees any memory created by dwFeatureHistoryArray_create().
DW_API_PUBLIC dwStatus dwFeatureArray_destroy(dwFeatureArray featureArray)
Destroys the featureArray and frees any memory created by dwFeatureArray_create().
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
dwMemoryType
Memory type definitions.
size_t bytes
Bytes of raw data.
uint32_t maxHistory
Max feature history size.
dwStatus
Status definition.
DW_API_PUBLIC dwStatus dwFeatureArray_copyAsync(dwFeatureArray *dstFeatures, const dwFeatureArray *srcFeatures, cudaStream_t stream)
Deep copy all contents from srcFeatures to dstFeatures
uint32_t * ages
Age of each feature.
uint32_t currentTimeIdx
Index that points to the latest feature records.
The feature was just detected in the current frame.
DW_API_PUBLIC dwStatus dwFeature_mergeNewToOldMap(uint32_t *d_newToOldMapC2A, const uint32_t *d_newToOldMapC2B, const uint32_t *d_newToOldMapB2A, const uint32_t *d_newToOldMapCount, const uint32_t maxFeatureCount, cudaStream_t stream)
Merge newToOldMap from 2 inputs.
The feature was successfully tracked in the current frame.
uint32_t * ids
Id of each feature.
dwFeature2DStatus
Defines the possible status of a feature.
DW_API_PUBLIC dwStatus dwFeatureArray_create(dwFeatureArray *featureArray, const uint32_t maxFeatureCount, const dwMemoryType memoryType, dwContextHandle_t context)
Creates and initializes a feature array.
uint32_t * featureCount
Total number of feature points.
float32_t * scales
Scale change for each feature.
dwFeature2DStatus * statuses
Status of each feature.
uint32_t * ids
Id of each feature.
DW_API_PUBLIC dwStatus dwFeatureArray_reset(dwFeatureArray *featureArray)
Resets the feature array.
struct dwContextObject * dwContextHandle_t
Context handle.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_reset(dwFeatureHistoryArray *featureHistoryArray)
Resets the feature history array.
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_copyAsync(dwFeatureHistoryArray *dstFeatureHistory, const dwFeatureHistoryArray *srcFeatureHistory, cudaStream_t stream)
Deep copy all contents from srcFeatureHistory to dstFeatureHistory
float32_t * scales
Scale change for each feature.
dwVector2f * locations
Location of feature points.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_create(dwFeatureHistoryArray *featureHistoryArray, const uint32_t maxFeatureCount, const uint32_t maxHistoryCapacity, const dwMemoryType memoryType, dwContextHandle_t context)
Creates and initializes a feature history array.
uint32_t maxFeatures
Max number of features.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getPrevious(dwFeatureArray *featureArray, dwFeatureHistoryArray *featureHistoryArray)
Get the feature snapshot(arraySize = maxFeatureCount) 1 frame previous to current time...
NVIDIA DriveWorks API: Core Exports