|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
36 #ifndef DW_IMAGEPROCESSING_FEATURES_FEATURELIST_H_
37 #define DW_IMAGEPROCESSING_FEATURES_FEATURELIST_H_
123 DW_DEPRECATED(
"use hostPointer or cudaDevicePointer instead")
176 DW_DEPRECATED(
"WARNING: will be removed in the next major release, use dwFeatureArray_createNew instead")
179 const uint32_t maxFeatureCount,
204 const uint32_t maxFeatureCount,
243 cudaStream_t stream);
262 cudaStream_t stream);
286 const uint32_t maxFeatureCount,
287 const uint32_t maxHistoryCapacity,
312 const uint32_t maxFeatureCount,
313 const uint32_t maxHistoryCapacity,
349 cudaStream_t stream);
413 const uint32_t historyIdx,
434 cudaStream_t stream);
457 const uint32_t* d_newToOldMapC2B,
458 const uint32_t* d_newToOldMapB2A,
459 const uint32_t* d_newToOldMapCount,
460 const uint32_t maxFeatureCount,
461 cudaStream_t stream);
467 #endif // DW_IMAGEPROCESSING_FEATURES_FEATURELIST_H_
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_createNew(dwFeatureHistoryArray *featureHistoryArray, const uint32_t maxFeatureCount, const uint32_t maxHistoryCapacity, const dwMemoryType memoryType, cudaStream_t stream, dwContextHandle_t context)
Creates and initializes a feature history array.
uint32_t currentTimeIdx
Index that points to the latest feature records.
dwVector2f * locations
Location of feature points.
uint32_t * validTrackedCount
Valid tracked features from last frame.
void * devicePointer
Base address for the data in device address space.
uint32_t sensorId
ID of the camera sensor for which the array was generated.
size_t bytes
Bytes of raw data.
float32_t * scales
Scale change for each feature.
@ DW_FEATURE2D_STATUS_TRACKED
The feature was successfully tracked in the current frame.
void * devicePointer
Base address for the data in device address space.
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 * ages
Age of each feature.
@ DW_FEATURE2D_STATUS_TYPE_COUNT
Number of different dwFeature2DStatus enum type, mark as enum end.
uint32_t maxFeatures
Max number of features in one timeIdx.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_copyAsync(dwFeatureHistoryArray *dstFeatureHistory, const dwFeatureHistoryArray *srcFeatureHistory, cudaStream_t stream)
Deep copy all contents from srcFeatureHistory to dstFeatureHistory.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
uint32_t timeIdx
Time index, 0 means latest, N means N frames earlier to latest.
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
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_reset(dwFeatureHistoryArray *featureHistoryArray, cudaStream_t stream)
Resets the feature history array.
DW_API_PUBLIC dwStatus dwFeatureArray_copyAsync(dwFeatureArray *dstFeatures, const dwFeatureArray *srcFeatures, cudaStream_t stream)
Deep copy all contents from srcFeatures to dstFeatures.
void * hostPointer
Base address for the data in host address space.
dwFeature2DStatus * statuses
Status of each feature.
uint32_t * ids
Id of each feature.
uint32_t * ages
Age of each feature.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_destroy(dwFeatureHistoryArray featureHistoryArray)
Destroys the featureHistoryArray and frees any memory created by dwFeatureHistoryArray_createNew().
DW_API_PUBLIC dwStatus dwFeatureArray_createNew(dwFeatureArray *featureArray, const uint32_t maxFeatureCount, const dwMemoryType memoryType, cudaStream_t stream, dwContextHandle_t context)
Creates and initializes a feature array.
struct dwFeatureArray dwFeatureArray
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.
dwStatus
Status definition.
#define DW_DEPRECATED(msg)
float32_t * scales
Scale change for each feature.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getCurrent(dwFeatureArray *featureArray, dwFeatureHistoryArray const *featureHistoryArray)
Get the latest feature snapshot(arraySize = maxFeatureCount) from history.
uint32_t * featureCount
Total number of feature points.
uint32_t maxFeatures
Max number of features.
dwFeature2DStatus
Defines the feature array used by detector and tracker.
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwFeatureArray_destroy(dwFeatureArray featureArray)
Destroys the featureArray and frees any memory created by dwFeatureArray_createNew().
void * hostPointer
Base address for the data in host address space.
uint8_t * data
Pointer to the raw data address.
dwVector2f * locationHistory
Location history of feature points.
Holds pointers to the data exposed by a feature2d list.
uint32_t * validTrackedCount
Valid tracked features from last frame.
dwTime_t timestamp
Timestamp of the dwFeatureHistoryArray struct, which is the timestamp of the latest image frame being...
dwFeature2DStatus * statuses
Status of each feature.
@ DW_FEATURE2D_STATUS_DETECTED
The feature was just detected in the current frame.
uint32_t * ids
Id of each feature.
DW_API_PUBLIC dwStatus dwFeatureArray_reset(dwFeatureArray *featureArray, cudaStream_t stream)
Resets the feature array.
uint32_t maxHistory
Max feature history size.
uint32_t sensorId
ID of the camera sensor for which the array was generated.
DW_API_PUBLIC dwStatus dwFeatureHistoryArray_getPrevious(dwFeatureArray *featureArray, dwFeatureHistoryArray const *featureHistoryArray)
Get the feature snapshot(arraySize = maxFeatureCount) 1 frame previous to current time.
uint32_t * newToOldMap
New to old index map, 1D array of size maxFeatures.
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_FEATURE2D_STATUS_INVALID
A feature with this entry is garbage.
uint32_t * featureCount
Total number of feature points.
dwMemoryType memoryType
Where feature array is located, GPU, CPU or pinned memory.
Defines a two-element single-precision floating-point vector.