31#ifndef DW_IMAGEPROCESSING_BOXTRACKER2D_H_
32#define DW_IMAGEPROCESSING_BOXTRACKER2D_H_
NVIDIA DriveWorks API: Feature Array and Feature History Array
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Methods
float32_t confidence
Confidence in tracking results.
const float32_t * featureLocations
2d feature coordinates inside the bounding box.
uint32_t maxFeatureCountPerBox
Maximum features to track for each 2D bounding box.
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 similarityThreshold
The threshold to define the location and size similarity of the bounding boxes.
int32_t trackedFrameCount
Total number of tracked frames.
uint32_t groupThreshold
Minimum possible number of boxes minus 1.
float32_t confRateTrack
Rate at which confidence values of tracked boxes changes from frame to frame, i.e....
float32_t confThreshConfirm
Threshold on confidence below which tracker no longer report box location.
uint32_t maxBoxCount
Maximum 2D boxes to track.
dwBox2D box
Bounding box location and size.
float64_t maxBoxImageScale
Maximum box scale in the image to track.
float32_t confThreshDiscard
Threshold on confidence below which tracker no longer track box location.
float32_t confRateDetect
Rate at which to combine confidence values of new boxes to existing tracked boxes when a new box is f...
size_t nFeatures
Total number of tracked 2D features.
int32_t id
Bounding box ID.
float64_t minBoxImageScale
Minimum box scale in the image to track.
float32_t maxMatchDistance
Maximum distance around the closest tracked box to search for a candidate matching box.
DW_API_PUBLIC dwStatus dwBoxTracker2D_track(const float32_t *curFeatureLocations, const dwFeature2DStatus *curFeatureStatuses, const float32_t *preFeatureLocations, dwBoxTracker2DHandle_t obj)
Tracks the bounding boxes.
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_get(const dwTrackedBox2D **boxList, size_t *num, dwBoxTracker2DHandle_t obj)
Gets tracked bounding boxes and IDs.
DW_API_PUBLIC dwStatus dwBoxTracker2D_release(dwBoxTracker2DHandle_t obj)
Releases the 2D bounding box tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_setTrackingPriority(uint32_t idx, float32_t priority, dwBoxTracker2DHandle_t obj)
Sets the priority of a bounding box.
struct dwBoxTracker2DObject * dwBoxTracker2DHandle_t
Handle to a 2D object tracker.
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.
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.
DW_API_PUBLIC dwStatus dwBoxTracker2D_getTrackingPriority(float32_t *priority, uint32_t idx, dwBoxTracker2DHandle_t obj)
Returns the priority of a bounding box.
DW_API_PUBLIC dwStatus dwBoxTracker2D_enablePriorityTracking(bool enable, dwBoxTracker2DHandle_t obj)
Enables priority tracking of a boundary box.
DW_API_PUBLIC dwStatus dwBoxTracker2D_initParams(dwBoxTracker2DParams *parameters)
Initializes 2D tracker parameters with default values.
DW_API_PUBLIC dwStatus dwBoxTracker2D_reset(dwBoxTracker2DHandle_t obj)
Resets the 2D bounding box tracker.
DW_API_PUBLIC dwStatus dwBoxTracker2D_shallowReset(dwBoxTracker2DHandle_t obj)
Performs a shallow reset on 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.
Holds 2D object-tracker parameters.
Holds a tracked 2D bounding box.
struct dwContextObject * dwContextHandle_t
Context handle.
dwStatus
Status definition.
float float32_t
Specifies POD types.
dwFeature2DStatus
Defines the possible status of a feature.