46#ifndef DW_IMAGEPROCESSING_FEATURES_FEATURELIST_H_
47#define DW_IMAGEPROCESSING_FEATURES_FEATURELIST_H_
192 const uint32_t maxFeatureCount,
222 cudaStream_t stream);
237 cudaStream_t stream);
255 const uint32_t maxFeatureCount,
256 const uint32_t maxHistoryCapacity,
283 cudaStream_t stream);
335 const uint32_t historyIdx,
352 cudaStream_t stream);
371 const uint32_t* d_newToOldMapC2B,
372 const uint32_t* d_newToOldMapB2A,
373 const uint32_t* d_newToOldMapCount,
374 const uint32_t maxFeatureCount,
375 cudaStream_t stream);
395 uint32_t
const dimension,
396 uint32_t
const maxFeatureCount,
427 cudaStream_t stream);
NVIDIA DriveWorks API: Core Methods
Defines a two-element single-precision floating-point vector.
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Exports
float float32_t
Specifies POD types.
struct dwContextObject * dwContextHandle_t
Context handle.
dwStatus
Status definition.
dwMemoryType
Memory type definitions.
dwTrivialDataType
Specifies a type indicator of the underlying trivial data type.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
uint32_t maxHistory
Max feature history size.
float32_t * scales
Scale change for each feature.
float32_t * scales
Scale change for each feature.
dwVector2f * locations
Location of feature points.
uint32_t * validTrackedCount
Valid tracked features from last frame.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
dwFeature2DStatus * statuses
Status of each feature.
uint32_t timeIdx
Time index, 0 means latest, N means N frames earlier to latest.
size_t bytes
Bytes of raw data.
uint8_t * data
Pointer to the raw data address.
uint32_t * ages
Age of each feature.
uint32_t * ids
Id of each feature.
uint32_t * featureCount
Total number of feature points.
dwVector2f * locations
Location of feature points.
uint32_t dimension
Descriptor dimension.
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
dwTrivialDataType dataType
Descriptor data type dimension.
uint32_t maxFeatures
Max number of features in one timeIdx.
uint32_t * featureCount
Total number of feature points.
dwVector2f * locationHistory
Location history of feature points.
uint32_t * ids
Id of each feature.
uint32_t * featureCount
Total number of feature points.
uint32_t * validTrackedCount
Valid tracked features from last frame.
dwFeature2DStatus * statuses
Status of each feature.
uint32_t * ids
Id of each feature.
uint32_t * ages
Age of each feature.
uint32_t maxFeatures
Max number of features.
size_t bytes
Bytes of raw data.
uint32_t currentTimeIdx
Index that points to the latest feature records.
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
uint8_t * data
Pointer to the raw data address.
uint8_t * descriptors
Descriptor of feature points.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
uint32_t maxFeatures
Max number of features.
dwFeature2DStatus * statuses
Status of each feature.
DW_API_PUBLIC dwStatus dwFeatureDescriptorArray_copyAsync(dwFeatureDescriptorArray *dstDescriptors, dwFeatureDescriptorArray const *srcDescriptors, cudaStream_t stream)
Deep copy all contents from srcDescriptors to dstDescriptors.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_destroy(dwFeatureHistoryArray featureHistoryArray)
Destroys the featureHistoryArray and frees any memory created by dwFeatureHistoryArray_create().
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_get(dwFeatureArray *featureArray, const uint32_t historyIdx, dwFeatureHistoryArray const *featureHistoryArray)
Get the feature snapshot(arraySize = maxFeatureCount) historyIdx-th frame earlier.
dwFeature2DStatus
Defines the possible status of a feature.
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.
DW_API_PUBLIC dwStatus dwFeatureArray_copyAsync(dwFeatureArray *dstFeatures, const dwFeatureArray *srcFeatures, cudaStream_t stream)
Deep copy all contents from srcFeatures to dstFeatures.
DW_API_PUBLIC dwStatus dwFeatureDescriptorArray_destroy(dwFeatureDescriptorArray const *descriptorArray)
Destroys the descriptor array and frees any memory created by dwDescriptorArray_create()
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_copyAsync(dwFeatureHistoryArray *dstFeatureHistory, const dwFeatureHistoryArray *srcFeatureHistory, cudaStream_t stream)
Deep copy all contents from srcFeatureHistory to dstFeatureHistory.
DW_API_PUBLIC dwStatus dwFeatureArray_reset(dwFeatureArray *featureArray, cudaStream_t stream)
Resets the feature array.
DW_API_PUBLIC dwStatus dwFeatureDescriptorArray_create(dwFeatureDescriptorArray *descriptorArray, dwTrivialDataType const dataType, uint32_t const dimension, uint32_t const maxFeatureCount, dwMemoryType const memoryType, dwContextHandle_t context)
Creates descriptor array.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_reset(dwFeatureHistoryArray *featureHistoryArray, cudaStream_t stream)
Resets the feature history array.
DW_API_PUBLIC dwStatus dwFeatureArray_destroy(dwFeatureArray featureArray)
Destroys the featureArray and frees any memory created by dwFeatureArray_create().
DW_API_PUBLIC dwStatus dwFeatureArray_create(dwFeatureArray *featureArray, const uint32_t maxFeatureCount, const dwMemoryType memoryType, dwContextHandle_t context)
Creates and initializes a feature array.
DW_API_PUBLIC dwStatus dwFeatureDescriptorArray_copy(dwFeatureDescriptorArray *dstDescriptors, dwFeatureDescriptorArray const *srcDescriptors)
Deep copy all contents from srcDescriptors to dstDescriptors.
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.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getCurrent(dwFeatureArray *featureArray, dwFeatureHistoryArray const *featureHistoryArray)
Get the latest feature snapshot(arraySize = maxFeatureCount) from history.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getPrevious(dwFeatureArray *featureArray, dwFeatureHistoryArray const *featureHistoryArray)
Get the feature snapshot(arraySize = maxFeatureCount) 1 frame previous to current time.
@ DW_FEATURE2D_STATUS_DETECTED
The feature was just detected in the current frame.
@ DW_FEATURE2D_STATUS_INVALID
A feature with this entry is garbage.
@ DW_FEATURE2D_STATUS_TRACKED
The feature was successfully tracked in the current frame.
@ DW_FEATURE2D_STATUS_TYPE_COUNT
number of different dwFeature2DStatus enum type, mark as enum end
Holds pointers to the data exposed by a feature2d list.
Holds pointers to the data exposed by a feature2d list.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality