31 #ifndef DW_IMAGEPROCESSING_BOXTRACKER2D_H_ 32 #define DW_IMAGEPROCESSING_BOXTRACKER2D_H_ 35 #include <dw/core/Config.h> 269 const float32_t* preFeatureLocations, dwBoxTracker2DHandle_t obj);
288 size_t nFeatures, dwBoxTracker2DHandle_t obj);
350 #endif // DW_FEATURES_BOXTRACKER2D_H_ DW_API_PUBLIC dwStatus dwBoxTracker2D_enablePriorityTracking(bool enable, dwBoxTracker2DHandle_t obj)
Enables priority tracking of a boundary box.
float64_t similarityThreshold
The threshold to define the location and size similarity of the bounding boxes.
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
size_t nFeatures
Total number of tracked 2D features.
Holds 2D object-tracker parameters.
DW_API_PUBLIC dwStatus dwBoxTracker2D_reset(dwBoxTracker2DHandle_t obj)
Resets the 2D bounding box tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_addPreClustered(const dwTrackedBox2D *boxes, size_t num, dwBoxTracker2DHandle_t obj)
Adds pre-clustered bounding boxes to the tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_track(const float32_t *curFeatureLocations, const dwFeature2DStatus *curFeatureStatuses, const float32_t *preFeatureLocations, dwBoxTracker2DHandle_t obj)
Tracks the bounding boxes.
uint32_t groupThreshold
Minimum possible number of boxes minus 1.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwBoxTracker2D_initialize(dwBoxTracker2DHandle_t *obj, const dwBoxTracker2DParams *parameters, int32_t imageWidth, int32_t imageHeight, dwContextHandle_t context)
Initializes 2D bounding box tracker.
struct dwBoxTracker2DObject * dwBoxTracker2DHandle_t
Handle to a 2D object tracker.
dwBox2D box
Bounding box location and size.
float64_t maxBoxImageScale
Maximum box scale in the image to track.
dwStatus
Status definition.
float32_t confThreshDiscard
Threshold on confidence below which tracker no longer track box location.
DW_API_PUBLIC dwStatus dwBoxTracker2D_get(const dwTrackedBox2D **boxList, size_t *num, dwBoxTracker2DHandle_t obj)
Gets tracked bounding boxes and IDs.
int32_t id
Bounding box ID.
float32_t maxMatchDistance
Maximum distance around the closest tracked box to search for a candidate matching box...
DW_API_PUBLIC dwStatus dwBoxTracker2D_getTrackingPriority(float32_t *priority, uint32_t idx, dwBoxTracker2DHandle_t obj)
Returns the priority of a bounding box.
dwFeature2DStatus
Defines the possible status of a feature.
DW_API_PUBLIC dwStatus dwBoxTracker2D_shallowReset(dwBoxTracker2DHandle_t obj)
Performs a shallow reset on the 2D bounding box tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_initParams(dwBoxTracker2DParams *parameters)
Initializes 2D tracker parameters with default values.
struct dwContextObject * dwContextHandle_t
Context handle.
float32_t confThreshConfirm
Threshold on confidence below which tracker no longer report box location.
DW_API_PUBLIC dwStatus dwBoxTracker2D_add(const dwBox2D *boxes, size_t num, dwBoxTracker2DHandle_t obj)
Adds bounding boxes to the tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_setTrackingPriority(uint32_t idx, float32_t priority, dwBoxTracker2DHandle_t obj)
Sets the priority of a bounding box.
Holds a tracked 2D bounding box.
const float32_t * featureLocations
2d feature coordinates inside the bounding box.
float32_t confRateTrack
Rate at which confidence values of tracked boxes changes from frame to frame, i.e., conf = conf - rate.
float32_t minMatchOverlap
Minimum amount of overlap between a tracked box and an added box such that the 2 boxes can be conside...
float64_t minBoxImageScale
Minimum box scale in the image to track.
NVIDIA DriveWorks API: Feature Array and Feature History Array
float32_t confidence
Confidence in tracking results.
DW_API_PUBLIC dwStatus dwBoxTracker2D_updateFeatures(const float32_t *featureLocations, const dwFeature2DStatus *statuses, size_t nFeatures, dwBoxTracker2DHandle_t obj)
Updates the feature locations of the 2D bounding boxes.
float32_t confRateDetect
Rate at which to combine confidence values of new boxes to existing tracked boxes when a new box is f...
int32_t trackedFrameCount
Total number of tracked frames.
uint32_t maxBoxCount
Maximum 2D boxes to track.
uint32_t maxFeatureCountPerBox
Maximum features to track for each 2D bounding box.
DW_API_PUBLIC dwStatus dwBoxTracker2D_release(dwBoxTracker2DHandle_t obj)
Releases the 2D bounding box tracker.