Class used to manage selection of tracking points based on image templates (i.e.
More...
#include <TrackingPointSelector.h>
|
| OCV_EXTERN | TrackingPointSelector () |
| OCV_EXTERN | TrackingPointSelector (std::vector< cv::Point2f > pts, int width, int height, int markerTemplateWidth, int width0, int height0) |
| void | DistributeBins (int markerTemplateWidth) |
| | Iterates over _pts, the location of Harris corners in the image, and for each one, provided it doesn't intersect the image border, creates a TrackedPoint representing a template with a serially-increasing id from 0, and put it into the trackingPointsBin structure (a vector of pairs of (binIndex, trackingPoint)).
|
| void | UpdatePointStatus (std::vector< uchar > status) |
| void | ResetSelection () |
| | Signal that the next call to GetInitialFeatures should return a new selection.
|
| std::vector< cv::Point2f > | GetInitialFeatures () |
| | If reset, then selects an initial random template from each bin for tracking, and returns this set.
|
| std::vector< cv::Point2f > | GetTrackedFeatures () |
| std::vector< cv::Point3f > | GetTrackedFeatures3d () |
| std::vector< cv::Point2f > | GetTrackedFeaturesWarped (const cv::Mat &homography) |
| | Gets the projected location in the video frame of the currently tracked features, when projected via the supplied homography.
|
| OCV_EXTERN std::vector< cv::Point2f > | GetAllFeatures () |
| | Get all points from all bins that are candidates for selection.
|
| OCV_EXTERN void | CleanUp () |
Class used to manage selection of tracking points based on image templates (i.e.
unique pixel patches).</brief>
◆ TrackingPointSelector() [1/2]
| TrackingPointSelector::TrackingPointSelector |
( |
| ) |
|
◆ TrackingPointSelector() [2/2]
| TrackingPointSelector::TrackingPointSelector |
( |
std::vector< cv::Point2f > | pts, |
|
|
int | width, |
|
|
int | height, |
|
|
int | markerTemplateWidth, |
|
|
int | width0, |
|
|
int | height0 ) |
- Parameters
-
| pts | Location of Harris corners in the image. |
| width | Width of the image in which pts are measured. |
| height | Height of the image in which pts are measured. |
| width0 | Width of the image at level 0 of the image pyramid. If larger than width (i.e. width does not represent level 0), the output of all Get*Features*() functions will be scaled to level 0 image dimensions. |
| height0 | Height of the image at level 0 of the image pyramid. If larger than height (i.e. height does not represent level 0, the output of all Get*Features*() functions will be scaled to level 0 image dimensions. |
◆ CleanUp()
| void TrackingPointSelector::CleanUp |
( |
| ) |
|
◆ DistributeBins()
| void TrackingPointSelector::DistributeBins |
( |
int | markerTemplateWidth | ) |
|
Iterates over _pts, the location of Harris corners in the image, and for each one, provided it doesn't intersect the image border, creates a TrackedPoint representing a template with a serially-increasing id from 0, and put it into the trackingPointsBin structure (a vector of pairs of (binIndex, trackingPoint)).
◆ GetAllFeatures()
| std::vector< cv::Point2f > TrackingPointSelector::GetAllFeatures |
( |
| ) |
|
Get all points from all bins that are candidates for selection.
◆ GetInitialFeatures()
| std::vector< cv::Point2f > TrackingPointSelector::GetInitialFeatures |
( |
| ) |
|
If reset, then selects an initial random template from each bin for tracking, and returns this set.
If not reset then returns the same set as GetTrackedFeatures.
◆ GetTrackedFeatures()
| std::vector< cv::Point2f > TrackingPointSelector::GetTrackedFeatures |
( |
| ) |
|
◆ GetTrackedFeatures3d()
| std::vector< cv::Point3f > TrackingPointSelector::GetTrackedFeatures3d |
( |
| ) |
|
◆ GetTrackedFeaturesWarped()
| std::vector< cv::Point2f > TrackingPointSelector::GetTrackedFeaturesWarped |
( |
const cv::Mat & | homography | ) |
|
Gets the projected location in the video frame of the currently tracked features, when projected via the supplied homography.
- Parameters
-
| 3x3 | cv::Mat (of type CV_64FC1, i.e. double) containing the homography. |
◆ ResetSelection()
| void TrackingPointSelector::ResetSelection |
( |
| ) |
|
Signal that the next call to GetInitialFeatures should return a new selection.
◆ UpdatePointStatus()
| void TrackingPointSelector::UpdatePointStatus |
( |
std::vector< uchar > | status | ) |
|
The documentation for this class was generated from the following files: