Runs KLT Feature tracking on a sequence of frames. More...
Data Structures | |
struct | VPIKLTFeatureTrackerParams |
Structure that defines the parameters for vpiCreateKLTFeatureTracker. More... | |
struct | VPIKLTTrackedBoundingBox |
Stores a bounding box that is being tracked by KLT Tracker. More... | |
Enumerations | |
enum | VPIKLTFeatureTrackerType |
KLT Feature Tracker algorithm type. More... | |
Functions | |
VPIStatus | vpiCreateKLTFeatureTracker (VPIBackend backend, uint32_t imageWidth, uint32_t imageHeight, VPIImageFormat imageFormat, VPIPayload *payload) |
Creates payload for vpiSubmitKLTFeatureTracker. More... | |
VPIStatus | vpiSubmitKLTFeatureTracker (VPIStream stream, VPIPayload payload, VPIImage templateImage, VPIArray inputBoxList, VPIArray inputPredictionList, VPIImage referenceImage, VPIArray outputBoxList, VPIArray outputEstimationList, const VPIKLTFeatureTrackerParams *params) |
Runs KLT Feature Tracker on two frames. More... | |
Runs KLT Feature tracking on a sequence of frames.
struct VPIKLTFeatureTrackerParams |
Structure that defines the parameters for vpiCreateKLTFeatureTracker.
[in] | thresholdUpdate | threshold to update template |
[in] | thresholdKill | threshold to kill tracking |
[in] | thresholdStop | threshold to stop iteration |
[in] | maxScaleChange | maximum scale change for valid tracking |
[in] | maxTranslationChange | maximum translation change for valid tracking |
[in] | imageType | input image type |
Definition at line 105 of file KLTFeatureTracker.h.
Data Fields | ||
---|---|---|
float | maxScaleChange |
Maximum relative scale change. Scale changes larger than this will make KLT consider that tracking was lost. |
float | maxTranslationChange |
Maximum relative translation change. Translation changes larger than this will make KLT consider that tracking was lost. |
float | nccThresholdKill |
Threshold to consider template tracking was lost. Must be a value between 0 and 1. |
float | nccThresholdStop | Threshold to stop estimating. |
float | nccThresholdUpdate |
Threshold for requiring template update. Must be a value between 0 and 1. |
uint32_t | numberOfIterationsScaling | Number of Inverse compositional iterations of scale estimations. |
VPIKLTFeatureTrackerType | trackingType | Type of KLT tracking that will be performed. |
struct VPIKLTTrackedBoundingBox |
Stores a bounding box that is being tracked by KLT Tracker.
Data Fields | ||
---|---|---|
VPIBoundingBox | bbox | Bounding box being tracked. |
uint8_t | reserved1 | Reserved for future use. |
uint8_t | reserved2 | Reserved for future use. |
uint8_t | templateStatus |
Status of the template related to this bounding box. Accepted values:
|
uint8_t | trackingStatus |
Tracking status of this bounding box. Accepted values:
|
#include <vpi/algo/KLTFeatureTracker.h>
KLT Feature Tracker algorithm type.
Enumerator | |||
---|---|---|---|
VPI_KLT_INVERSE_COMPOSITIONAL | Inverse compositional algorithm for KLT tracker. The inverse compositional algorithm is a reformulation of the classic Lucas-Kanade algorithm to make the steepest-descent images and Hessian constant.
|
Definition at line 81 of file KLTFeatureTracker.h.
VPIStatus vpiCreateKLTFeatureTracker | ( | VPIBackend | backend, |
uint32_t | imageWidth, | ||
uint32_t | imageHeight, | ||
VPIImageFormat | imageFormat, | ||
VPIPayload * | payload | ||
) |
#include <vpi/algo/KLTFeatureTracker.h>
Creates payload for vpiSubmitKLTFeatureTracker.
[in] | backend | VPI backend that will execute the algorithm. |
[in] | imageWidth,imageHeight | Input image dimensions. |
[in] | imageFormat | Input image format. |
[out] | payload | Pointer to memory where the created payload handle will be written to. |
VPIStatus vpiSubmitKLTFeatureTracker | ( | VPIStream | stream, |
VPIPayload | payload, | ||
VPIImage | templateImage, | ||
VPIArray | inputBoxList, | ||
VPIArray | inputPredictionList, | ||
VPIImage | referenceImage, | ||
VPIArray | outputBoxList, | ||
VPIArray | outputEstimationList, | ||
const VPIKLTFeatureTrackerParams * | params | ||
) |
#include <vpi/algo/KLTFeatureTracker.h>
Runs KLT Feature Tracker on two frames.
Outputs tracked bounding boxes and estimated transform array.
[in] | stream | The stream where the operation will be queued in. |
[in] | payload | payload created with vpiCreateKLTFeatureTracker |
[in] | referenceImage | reference image |
[in] | inputBoxList | Input bounding box array, must have type VPI_ARRAY_TYPE_KLT_TRACKED_BOUNDING_BOX |
[in] | inputPredictionList | Input predicted transform array, must have type VPI_ARRAY_TYPE_HOMOGRAPHY_TRANSFORM_2D |
[in] | templateImage | template image |
[out] | outputBoxList | output Bounding box array, must have type VPI_ARRAY_TYPE_KLT_TRACKED_BOUNDING_BOX |
[out] | outputEstimationList | Sstimated transform array, must have type VPI_ARRAY_TYPE_HOMOGRAPHY_TRANSFORM_2D |
[in] | params | Control parameters of the KLT feature tracker algorithm. |