|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
28 #ifndef DW_IMAGEPROCESSING_TRACKING_TEMPLATETRACKER_TEMPLATETRACKER_H_
29 #define DW_IMAGEPROCESSING_TRACKING_TEMPLATETRACKER_TEMPLATETRACKER_H_
32 #include <dw/core/base/Config.h>
33 #include <dw/core/context/Context.h>
34 #include <dw/core/base/Types.h>
35 #include <dw/image/Image.h>
36 #include <dw/imageprocessing/features/FeatureList.h>
37 #include <dw/imageprocessing/pyramid/Pyramid.h>
227 DW_DEPRECATED(
"WARNING: will be removed in the next major release, use dwTemplateArray_createNew instead")
229 const uint32_t maxTemplateCount,
255 const uint32_t maxTemplateCount,
314 cudaStream_t stream);
469 #endif // DW_IMAGEPROCESSING_TRACKING_TEMPLATETRACKER_TEMPLATETRACKER_H_
DW_API_PUBLIC dwStatus dwTemplateTracker_setCUDAStream(cudaStream_t cudaStream, dwTemplateTrackerHandle_t obj)
Sets the CUDA stream used.
uint32_t numIterationsFine
Iteration number to apply the KLT tracker.
uint32_t maxTemplateSize
Maximum size of templates to track, if ROI > maxTemplateSize * maxTemplateSize, template tracker will...
DW_API_PUBLIC dwStatus dwTemplateTracker_reset(dwTemplateTrackerHandle_t obj)
Resets the TemplateTracker.
uint32_t maxPyramidLevel
Max pyramid level to track.
dwMemoryType memoryType
Whether the template array is located on CPU or GPU.
Defines a rectangle with floating point numbers.
DW_API_PUBLIC dwStatus dwTemplateTracker_trackImage(dwTemplateArray *templateArray, const dwImageCUDA *currentImage, const dwImageCUDA *previousImage, dwTemplateTrackerHandle_t obj)
Track the templates in currentImage .
uint32_t * newToOldMap
New to old index map, 1D array of size maxTemplates.
uint32_t maxTemplates
Max number of templates in template array.
@ DW_TEMPLATE_TRACKER_ALGORITHM_IA
inverse additive KLT
float32_t maxScaleChange
If scalingFactor between frame N to N-1 is outside range [1/maxScaleChange, maxScaleChange] tracking ...
dwFeature2DStatus * statuses
Status of each template.
DW_API_PUBLIC dwStatus dwTemplateTracker_getCUDAStream(cudaStream_t *cudaStream, dwTemplateTrackerHandle_t obj)
Gets the CUDA stream used.
DW_API_PUBLIC dwStatus dwTemplateTracker_initDefaultParams(dwTemplateTrackerParameters *params)
Initializes TemplateTracker parameters with default values.
float32_t validWidth
Maximum valid template width, any templates with bbox.width > validWidth will be killed after trackin...
DW_API_PUBLIC dwStatus dwTemplateArray_destroy(dwTemplateArray templateArray)
Destroys the template array and frees any memory created by dwTemplateArray_createNew().
uint8_t * data
Pointer to the raw data address.
float float32_t
Specifies POD types.
struct dwTemplateTrackerObject const * dwConstTemplateTrackerHandle_t
Handle representing a const TemplateTracker tracker.
DW_API_PUBLIC dwStatus dwTemplateArray_copyAsync(dwTemplateArray *dstTemplateArray, const dwTemplateArray *srcTemplateArray, cudaStream_t stream)
Deep copy all contents from srcTemplateArray to dstTemplateArray
uint32_t maxTemplateCount
Upper bound on number of templates handled.
DW_API_PUBLIC dwStatus dwTemplateTracker_initialize(dwTemplateTrackerHandle_t *obj, const dwTemplateTrackerParameters *params, cudaStream_t stream, dwContextHandle_t context)
Initialize the TemplateTracker module.
uint32_t imageHeight
Height of the images that the tracker runs on.
DW_API_PUBLIC dwStatus dwTemplateArray_create(dwTemplateArray *templateArray, const uint32_t maxTemplateCount, const dwMemoryType memoryType, dwContextHandle_t context)
Creates and initializes a template array.
float32_t thresholdUpdate
Updating threshold in [0, 1].
uint32_t * templateCount
Total number of templates.
#define DW_DEPRECATED(msg)
DW_API_PUBLIC dwStatus dwTemplateTracker_release(dwTemplateTrackerHandle_t obj)
Releases the TemplateTracker module.
uint32_t imageWidth
Width of the images that the tracker runs on.
float32_t thresholdKill
Killing threshold in [0, 1].
DW_API_PUBLIC dwStatus dwTemplateArray_createNew(dwTemplateArray *templateArray, const uint32_t maxTemplateCount, const dwMemoryType memoryType, cudaStream_t stream, dwContextHandle_t context)
Creates and initializes a template array.
struct dwTemplateArray dwTemplateArray
uint32_t * ids
Id of each template.
DW_API_PUBLIC dwStatus dwTemplateArray_reset(dwTemplateArray *templateArray, cudaStream_t stream)
Resets the template array.
dwFeature2DStatus
Defines the feature array used by detector and tracker.
struct dwContextObject * dwContextHandle_t
Context handle.
struct dwTemplateTrackerParameters dwTemplateTrackerParameters
Configuration parameters for a dwTemplateTrackerIA.
Configuration parameters for a dwTemplateTrackerIA.
float32_t thresholdStop
for DW_TEMPLATE_TRACKER_ALGO_IC only Stop threshold in [-1, 1].
dwProcessorType processorType
Processor type which determines on which processor the algorithm should be executed on.
float32_t validHeight
Maximum valid template height, any templates with bbox.height > validHeight will be killed after trac...
dwStatus
Status definition.
dwRectf * bboxes
bounding box of each template.
dwTemplateTrackerAlgorithm
Different versions of the template tracker Both can be found in paper: "Lucas-Kanade 20 Years On: A U...
uint32_t numIterationsCoarse
for DW_TEMPLATE_TRACKER_ALGO_IA only Iteration number to apply the coarse KLT for robustness.
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const params
struct dwTemplateTrackerObject * dwTemplateTrackerHandle_t
Handle representing a TemplateTracker tracker.
const NvSciSyncObj *const obj
float32_t * scaleFactors
scaleFactor from frame N to N-1 of each template.
@ DW_TEMPLATE_TRACKER_ALGORITHM_IC
inverse compositional KLT.
uint32_t minTemplateSize
Minimum size of templates to track, if ROI < minTemplateSize * minTemplateSize, template tracker will...
DW_API_PUBLIC dwStatus dwTemplateTracker_trackPyramid(dwTemplateArray *templateArray, const dwPyramidImage *currentPyramid, const dwPyramidImage *previousPyramid, dwTemplateTrackerHandle_t obj)
Track the templates in currentPyramid .
size_t bytes
Bytes of raw data.
dwTemplateTrackerAlgorithm algorithm
Tracking Algorithm defined by dwTemplateTrackerAlgorithm.
uint32_t * ages
Age of each template.