Defines 2D-based feature detection and tracking.
Typedefs | |
typedef enum dwFeature2DTrackerStage | dwFeature2DTrackerStage |
The stage of feature tracker. More... | |
Enumerations | |
enum | dwFeature2DTrackerStage { DW_FEATURE2D_TRACKER_STAGE_TRACK_GPU_ASYNC = 0, DW_FEATURE2D_TRACKER_STAGE_COMPACT_GPU_ASYNC = 1, DW_FEATURE2D_TRACKER_STAGE_GPU_ASYNC_DATA_PREPARE = 100, DW_FEATURE2D_TRACKER_STAGE_PVA_ASYNC_TRACK_PYRAMID = 101, DW_FEATURE2D_TRACKER_STAGE_GPU_ASYNC_DATA_POSTPROCESS = 102 } |
The stage of feature tracker. More... | |
Functions | |
DW_API_PUBLIC dwStatus | dwFeature2DTracker_bindOutput (dwFeatureHistoryArray *featureHistoryArray, dwFeatureArray *predictedFeatures, float32_t *d_normalizedCrossCorrelation, dwFeature2DTrackerHandle_t obj) |
Bind output parameters to tracker object. More... | |
DW_API_PUBLIC dwStatus | dwFeature2DTracker_bindInputFeatures (const dwFeatureArray *featuresToTrack, const dwVector2f *d_predictedPositions, dwFeature2DTrackerHandle_t obj) |
Bind input features to be tracked as input parameter to the tracker. More... | |
DW_API_PUBLIC dwStatus | dwFeature2DTracker_bindInputPyramid (const dwPyramidImage *previousPyramid, const dwPyramidImage *currentPyramid, dwFeature2DTrackerHandle_t obj) |
Bind input parameters to tracker object. More... | |
DW_API_PUBLIC dwStatus | dwFeature2DTracker_process (dwFeature2DTrackerStage stage, dwFeature2DTrackerHandle_t obj) |
Tracks features and store the tracked results to predictedFeatures between the previous and current images. More... | |
typedef enum dwFeature2DTrackerStage dwFeature2DTrackerStage |
The stage of feature tracker.
The stage of feature tracker.
Definition at line 46 of file FeatureTracker_processpipeline.h.
DW_API_PUBLIC dwStatus dwFeature2DTracker_bindInputFeatures | ( | const dwFeatureArray * | featuresToTrack, |
const dwVector2f * | d_predictedPositions, | ||
dwFeature2DTrackerHandle_t | obj | ||
) |
Bind input features to be tracked as input parameter to the tracker.
[in] | featuresToTrack | list of features to be tracked, usually the output of feature detector. |
[in] | d_predictedPositions | An optional GPU pointer to a list of expected positions of the features to be tracked. The indexes of this list must match the indexes of the internal feature list. If NULL provided, tracker will use the locations found in featuresToTrack . |
[in] | obj | Specifies the feature tracker handle |
featuresToTrack
or obj
parameter is NULL.dwFeature2DTracker_process(DW_FEATURE2D_TRACKER_STAGE_TRACK_GPU_ASYNC)
. If it's not called, i.e. no featuresToTrack
have been set as input, tracker will continue tracking from the previously tracked features. DW_FEATURE2D_TRACKER_ALGORITHM_EX
, d_predictedPositions
are ignored. DW_API_PUBLIC dwStatus dwFeature2DTracker_bindInputPyramid | ( | const dwPyramidImage * | previousPyramid, |
const dwPyramidImage * | currentPyramid, | ||
dwFeature2DTrackerHandle_t | obj | ||
) |
Bind input parameters to tracker object.
[in] | previousPyramid | pyramid constructed from the last image. |
[in] | currentPyramid | pyramid constructed from the current image. |
[in] | obj | Specifies the feature tracker handle. |
DW_API_PUBLIC dwStatus dwFeature2DTracker_bindOutput | ( | dwFeatureHistoryArray * | featureHistoryArray, |
dwFeatureArray * | predictedFeatures, | ||
float32_t * | d_normalizedCrossCorrelation, | ||
dwFeature2DTrackerHandle_t | obj | ||
) |
Bind output parameters to tracker object.
[out] | featureHistoryArray | the dwFeatureHistoryArray that is bound to tracker, must be on GPU memory. |
[out] | predictedFeatures | list of predicted features, it's also the top slice of dwFeatureHistoryArray |
[out] | d_normalizedCrossCorrelation | Device pointer to nccScore of tracked features, will be ignored if it's NULL. |
[in] | obj | Specifies the feature tracker handle |
DW_API_PUBLIC dwStatus dwFeature2DTracker_process | ( | dwFeature2DTrackerStage | stage, |
dwFeature2DTrackerHandle_t | obj | ||
) |
Tracks features and store the tracked results to predictedFeatures
between the previous and current images.
Features to track are defined by dwFeatureHistoryArray
bound to the tracker during initialization
[in] | stage | Speicifies the tracking stage |
[in] | obj | Specifies the feature tracker handle. |
obj
is NULL or stage
is invalid. DW_CALL_NOT_ALLOWED if there's no input/output bound to tracker.dwFeature2DTracker_bindInput
and dwFeature2DTracker_bindOutput
must be called at least once before dwFeature2DTracker_process
.