Runs KLT Feature tracking on a sequence of frames. More...
Data Structures | |
| struct | VPIKLTFeatureTrackerCreationParams |
| Creation parameters of KLT Feature Tracker. More... | |
| 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 | vpiInitKLTFeatureTrackerCreationParams (VPIKLTFeatureTrackerCreationParams *params) |
| Initialize VPIKLTFeatureTrackerCreationParams with default values. More... | |
| VPIStatus | vpiCreateKLTFeatureTracker (uint64_t backends, int32_t imageWidth, int32_t imageHeight, VPIImageFormat imageFormat, const VPIKLTFeatureTrackerCreationParams *params, VPIPayload *payload) |
| Creates payload for vpiSubmitKLTFeatureTracker. More... | |
| VPIStatus | vpiInitKLTFeatureTrackerParams (VPIKLTFeatureTrackerParams *params) |
| Initialize VPIKLTFeatureTrackerParams with default values. More... | |
| VPIStatus | vpiSubmitKLTFeatureTracker (VPIStream stream, uint64_t backend, 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.
Refer to KLT Feature Tracker for more details and usage examples.
| struct VPIKLTFeatureTrackerCreationParams |
Creation parameters of KLT Feature Tracker.
Definition at line 80 of file KLTFeatureTracker.h.
Collaboration diagram for VPIKLTFeatureTrackerCreationParams:| struct VPIKLTFeatureTrackerParams |
Structure that defines the parameters for vpiCreateKLTFeatureTracker.
Definition at line 173 of file KLTFeatureTracker.h.
Collaboration diagram for VPIKLTFeatureTrackerParams:| Data Fields | ||
|---|---|---|
| int32_t | numberOfIterationsScaling |
Number of Inverse compositional iterations of scale estimations.
|
| float | nccThresholdUpdate |
Threshold for requiring template update.
|
| float | nccThresholdKill |
Threshold to consider template tracking was lost.
|
| float | nccThresholdStop |
Threshold to early stop iteration.
|
| 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.
|
| VPIKLTFeatureTrackerType | trackingType | Type of KLT tracking that will be performed. |
| struct VPIKLTTrackedBoundingBox |
Stores a bounding box that is being tracked by KLT Tracker.
Collaboration diagram for VPIKLTTrackedBoundingBox:| Data Fields | ||
|---|---|---|
| VPIBoundingBox | bbox | Bounding box being tracked. |
| int8_t | trackingStatus |
Tracking status of this bounding box. Accepted values:
|
| int8_t | templateStatus |
Status of the template related to this bounding box. Accepted values:
|
| uint8_t | reserved1 | Reserved for future use. |
| uint8_t | reserved2 | Reserved for future use. |
#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 156 of file KLTFeatureTracker.h.
| VPIStatus vpiInitKLTFeatureTrackerCreationParams | ( | VPIKLTFeatureTrackerCreationParams * | params | ) |
#include <vpi/algo/KLTFeatureTracker.h>
Initialize VPIKLTFeatureTrackerCreationParams with default values.
Default values:
| [out] | params | Structure to be filled with default values. |
| VPI_ERROR_INVALID_ARGUMENT | params is NULL. |
| VPI_SUCCESS | Operation executed successfully. |
| VPIStatus vpiCreateKLTFeatureTracker | ( | uint64_t | backends, |
| int32_t | imageWidth, | ||
| int32_t | imageHeight, | ||
| VPIImageFormat | imageFormat, | ||
| const VPIKLTFeatureTrackerCreationParams * | params, | ||
| VPIPayload * | payload | ||
| ) |
#include <vpi/algo/KLTFeatureTracker.h>
Creates payload for vpiSubmitKLTFeatureTracker.
| [in] | backends | VPI backends that are eligible to execute the algorithm.
|
| [in] | imageWidth,imageHeight | Input image dimensions.
|
| [in] | imageFormat | Input image format.
|
| [in] | params | params |
| [out] | payload | Pointer to the payload variable that receives the created handle. |
| VPI_ERROR_INVALID_ARGUMENT | payload is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | imageWidth and imageHeight outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | maxTemplateWidth and maxTemplateHeight in params outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | maxTemplateCount in params outside valid range. |
| VPI_ERROR_INVALID_ARGUMENT | backends refers to an invalid backend. |
| VPI_IMAGE_FORMAT_INVALID | imageFormat is not supported. |
| VPI_ERROR_INVALID_OPERATION | PVA hardware is not available. |
| VPI_ERROR_INVALID_OPERATION | Backend isn't enabled in current context. |
| VPI_ERROR_NOT_IMPLEMENTED | KLT Feature Tracker algorithm is not supported by given backend. |
| VPI_ERROR_INVALID_CONTEXT | Current context is destroyed. |
| VPI_ERROR_OUT_OF_MEMORY | Cannot allocate required resources. |
| VPI_SUCCESS | Operation executed successfully. |
| VPIStatus vpiInitKLTFeatureTrackerParams | ( | VPIKLTFeatureTrackerParams * | params | ) |
#include <vpi/algo/KLTFeatureTracker.h>
Initialize VPIKLTFeatureTrackerParams with default values.
Default values:
| [out] | params | Structure to be filled with default values. |
| VPIStatus vpiSubmitKLTFeatureTracker | ( | VPIStream | stream, |
| uint64_t | backend, | ||
| 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] | backend | Backend that will execute the algorithm.
|
| [in] | payload | Payload created by vpiCreateKLTFeatureTracker. |
| [in] | referenceImage | Reference image.
|
| [in] | inputBoxList | Input bounding box array.
|
| [in] | inputPredictionList | Input predicted transform array.
|
| [in] | templateImage | Template image.
|
| [out] | outputBoxList | Output Bounding box array.
|
| [out] | outputEstimationList | Estimated transform array.
|
| [in] | params | Control parameters of the KLT feature tracker algorithm. |
| VPI_ERROR_INVALID_ARGUMENT | stream is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | referenceImage, templateImage, inputBoxList, inputPredictionList, outputBoxList or outputEstimationList are NULL. |
| VPI_ERROR_INVALID_ARGUMENT | params is NULL. |
| VPI_ERROR_INVALID_ARGUMENT | payload not created by vpiCreateKLTFeatureTracker. |
| VPI_ERROR_INVALID_ARGUMENT | templateImage and referenceImage dimensions and format do not match. |
| VPI_ERROR_INVALID_ARGUMENT | Input and parameter image dimension do not match. |
| VPI_ERROR_INVALID_ARGUMENT | Image format and payload image format do not match. |
| VPI_ERROR_INVALID_ARGUMENT | Unsupported array type for inputBoxList or outputBoxList. |
| VPI_ERROR_INVALID_ARGUMENT | Unsupported array type for inputPredictionList or outputEstimationList. |
| VPI_ERROR_INVALID_ARGUMENT | Parameter(s) in params outside valid range. |
| VPI_ERROR_INVALID_PAYLOAD_TYPE | payload is invalid. |
| VPI_ERROR_INVALID_OPERATION | The needed backends aren't enabled in stream, referenceImage, templateImage, inputBoxList, inputPredictionList, outputBoxList or outputEstimationList. |
| VPI_SUCCESS | Operation executed successfully. |