![]() |
DriveWorks SDK Reference| 0.6.67 Release |
NVIDIA DriveWorks API: 2D Tracker
Description: This file defines 2D detection and tracking methods.
Definition in file Features.h.
Go to the source code of this file.
Data Structures | |
struct | dwFeatureListPointers |
Holds pointers to the data exposed by a feature list. More... | |
struct | dwFeatureTrackerConfig |
Holds configuration parameters for a feature tracker. More... | |
struct | dwPyramidConfig |
Holds the configuration parameters for a pyramid. More... | |
Typedefs | |
typedef struct dwFeatureListObject const * | dwConstFeatureListHandle_t |
Handle representing a const list of 2D features. More... | |
typedef struct dwFeatureTrackerObject const * | dwConstFeaturesTrackerHandle_t |
Handle representing a const feature tracker. More... | |
typedef struct dwPyramidObject const * | dwConstPyramidHandle_t |
Handle representing a const image pyramid. More... | |
typedef struct dwFeatureListObject * | dwFeatureListHandle_t |
Handle representing a list of 2D features. More... | |
typedef struct dwFeatureTrackerObject * | dwFeatureTrackerHandle_t |
Handle representing a feature tracker. More... | |
typedef struct dwPyramidObject * | dwPyramidHandle_t |
Handle representing an image pyramid. More... | |
Enumerations | |
enum | dwFeatureStatus { DW_FEATURE_STATUS_INVALID = 0, DW_FEATURE_STATUS_DETECTED, DW_FEATURE_STATUS_TRACKED, DW_FEATURE_STATUS_TYPE_COUNT } |
Defines the possible status of a feature. More... | |
Functions | |
DW_API_PUBLIC dwStatus | dwFeatureList_compact (dwFeatureListHandle_t featureList, const uint32_t *d_validIndexCount, const uint32_t *d_validIndexes, const uint32_t *d_invalidIndexCount, const uint32_t *d_invalidIndexes) |
Removes features from the list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_getCUDAStream (cudaStream_t *stream, dwFeatureListHandle_t obj) |
Gets the CUDA stream used by the feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_getCurrentTimeIdx (uint32_t *currentTimeIdx, dwFeatureListHandle_t obj) |
Returns the current time index of feature-history circular buffer. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_getDataBasePointer (void **d_basePointer, size_t *size, dwFeatureListHandle_t obj) |
Returns the start position of the data buffer that stores all of the feature list information (in GPU memory). More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_getDataPointers (dwFeatureListPointers *pointers, void *basePointer, dwFeatureListHandle_t obj) |
Returns the pointers to the actual data of a feature list given the base pointer. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_getFeatureListSize (uint32_t *maxFeatureCount, uint32_t *historyCapacity, dwFeatureListHandle_t obj) |
Returns the maximum feature count and history capacity of the feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_initialize (dwFeatureListHandle_t *obj, dwContextHandle_t context, cudaStream_t stream, const uint32_t maxFeatureCount, const uint32_t historyCapacity, const uint32_t imageWidth, uint32_t imageHeight) |
Creates and initializes a feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_proximityFilter (dwFeatureListHandle_t list) |
Invalidates features that are too close to each other. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_release (dwFeatureListHandle_t *obj) |
Releases the feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_reset (dwFeatureListHandle_t obj) |
Resets the feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_selectValid (uint32_t *d_validIndexCount, uint32_t *d_validIndexes, uint32_t *d_invalidIndexCount, uint32_t *d_invalidIndexes, dwConstFeatureListHandle_t obj) |
Creates a list of indexes of those features with a status of detected or tracked, and list of indexes of those features with a status of invalid. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_setCUDAStream (cudaStream_t stream, dwFeatureListHandle_t obj) |
Sets the CUDA stream for CUDA related operations. More... | |
DW_API_PUBLIC dwStatus | dwFeatureList_setCurrentTimeIdx (uint32_t currentTimeIdx, dwFeatureListHandle_t obj) |
Sets the current time index of the feature-history circular buffer. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_detectNewFeatures (dwFeatureListHandle_t list, dwConstPyramidHandle_t pyramid, dwFeatureTrackerHandle_t obj) |
Detects new features and adds them to the feature list. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_getCUDAStream (cudaStream_t *stream, dwFeatureTrackerHandle_t obj) |
Gets the CUDA stream used by the feature tracker. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_initialize (dwFeatureTrackerHandle_t *obj, dwContextHandle_t context, cudaStream_t stream, const dwFeatureTrackerConfig config) |
Creates and initializes a feature tracker. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_release (dwFeatureTrackerHandle_t *obj) |
Releases the feature tracker. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_reset (dwFeatureTrackerHandle_t obj) |
Resets a feature tracker. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_setCUDAStream (cudaStream_t stream, dwFeatureTrackerHandle_t obj) |
Sets the CUDA stream for CUDA related operations. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_setMask (const uint8_t *d_mask, const uint32_t maskStrideBytes, const uint32_t maskWidth, const uint32_t maskHeight, dwFeatureTrackerHandle_t obj) |
Sets a mask to ignore areas of the image. More... | |
DW_API_PUBLIC dwStatus | dwFeatureTracker_trackFeatures (dwFeatureListHandle_t list, dwConstPyramidHandle_t previousPyramid, dwConstPyramidHandle_t currentPyramid, const float32_t *d_predictedPositions, dwFeatureTrackerHandle_t obj) |
Tracks features from the internal list between the previous and current images. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_build (const dwImageCUDA *image, dwPyramidHandle_t obj) |
Builds the pyramid from the level 0 image. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_getCUDAStream (cudaStream_t *stream, dwConstPyramidHandle_t obj) |
Gets the CUDA stream used by the pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_getLevelCount (uint32_t *levelCount, dwConstPyramidHandle_t obj) |
Gets the number of levels in the pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_getLevelData (uint8_t **d_data, size_t *strideBytes, const uint32_t level, dwPyramidHandle_t obj) |
Gets the data of a level in the pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_getLevelImageCUDA (const dwImageCUDA **img, const uint32_t level, dwConstPyramidHandle_t obj) |
Gets the data of a level in the const pyramid as a dwImageCUDA. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_getLevelSize (uint32_t *width, uint32_t *height, const uint32_t level, dwConstPyramidHandle_t obj) |
Gets the size of a level in the pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_initialize (dwPyramidHandle_t *obj, dwContextHandle_t context, cudaStream_t stream, const dwPyramidConfig config) |
Creates and initializes an image pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_release (dwPyramidHandle_t *obj) |
Releases the pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_reset (dwPyramidHandle_t obj) |
Resets a pyramid. More... | |
DW_API_PUBLIC dwStatus | dwPyramid_setCUDAStream (cudaStream_t stream, dwPyramidHandle_t obj) |
Sets the CUDA stream for CUDA related operations. More... | |