Defines scaling-extend KLT module for object tracking.
if (ZNCC < updateThreshold)
feature template image <– new image
feature template location <– new location
feature template size <– new size
else
if (templateSize/newSize is not within [1/maxSizeDifference, maxSizeDifference])
feature template image <– new image
feature template location <– new location
feature template size <– new size
else if ((templateCenter - newCenter) > maxPixelTolerance)
feature template location <– new location
}
◆ dwScalingFeatureTracker_getCUDAStream()
Gets the CUDA stream used.
- Parameters
-
[out] | cudaStream | The CUDA stream used. |
[in] | obj | obj A pointer to the ScalingFeatureTracker handle that is updated. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle or cudaStream are NULL.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_initDefaultParams()
Initializes ScalingFeatureTracker parameters with default values.
- Parameters
-
[out] | params | ScalingFeatureTracker parameters. |
- Returns
- DW_INVALID_ARGUMENT if params is NULL.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_initialize()
Initialize the ScalingFeatureTracker module.
- Parameters
-
[out] | obj | A pointer to ScalingFeatureTracker handle that is initialized from parameters. |
[in] | params | ScalingFeatureTracker parameters. |
[in] | stream | Specifies the cuda stream to use |
[in] | context | Specifies the handle to the context. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle, params or context are NULL, or the params has invalid values.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_release()
Releases the ScalingFeatureTracker module.
- Parameters
-
[in] | obj | A pointer to the object handle to release. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle is NULL.
DW_SUCCESS otherwise.
- Note
- This method renders the handle unusable.
◆ dwScalingFeatureTracker_reset()
Resets the ScalingFeatureTracker.
- Parameters
-
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle is NULL.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_setCUDAStream()
Sets the CUDA stream used.
- Parameters
-
[in] | cudaStream | The CUDA stream used. |
[in] | obj | A pointer to the ScalingFeatureTracker handle that is updated. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle is NULL.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_trackAsync()
Track the features in currentImage
.
The computation takes place asynchronously on the device (GPU).
- Parameters
-
[in,out] | list | Specifies the scaling feature list which stores the features to be tracked and the tracking results (in place) |
[in] | currentImage | Current image data to track to. |
[in] | obj | Specifies the ScalingFeatureTracker handle. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle, list, d_rowCount, d_memoryIndices or currentImage are NULL.
DW_SUCCESS otherwise.
◆ dwScalingFeatureTracker_updateTemplateAsync()
Update the tracking template for each valid feature in the tracker The computation takes place asynchronously on the device (GPU).
- Parameters
-
[in,out] | list | Specifies the scaling feature list where the updated template data will be stored |
[in] | templateImage | Template image to the features to be tracked from |
[in] | obj | Specifies the ScalingFeatureTracker handle. |
- Returns
- DW_INVALID_ARGUMENT if ScalingFeatureTracker handle, list, d_rowCount, d_memoryIndices or templateImage are NULL.
DW_SUCCESS otherwise.