![]() |
ARX
1.2.0
The next-generation open source augmented reality toolkit.
|
#include <PlanarTracker.h>
Classes | |
| class | PlanarTrackerImpl |
Public Types | |
| enum class | FeatureDetectorType { Akaze , ORB , Brisk , Kaze , SIFT } |
| Defaults to defaultDetectorType. More... | |
Public Member Functions | |
| PlanarTracker () | |
| ~PlanarTracker () | |
| PlanarTracker (PlanarTracker &&) | |
| PlanarTracker & | operator= (PlanarTracker &&) |
| void | Initialise (ARParam cParam) |
| Initialise the tracker with the supplied camera parameters. | |
| void | ProcessFrameData (unsigned char *frame) |
| Perform tracking on a single frame of video. | |
| void | RemoveAllMarkers () |
| void | AddMarker (std::shared_ptr< unsigned char > buff, std::string fileName, int width, int height, int uid, float scale) |
| void | AddMarker (std::string imageName, int uid, float scale) |
| bool | GetTrackablePose (int trackableId, float transMat[3][4]) |
| If trackable is not visible, returns false, otherwise retrieves pose of trackable into transMat and returns true. | |
| bool | IsTrackableVisible (int trackableId) |
| bool | LoadTrackableDatabase (std::string fileName) |
| bool | SaveTrackableDatabase (std::string fileName) |
| bool | ChangeImageId (int prevId, int newId) |
| std::vector< int > | GetImageIds () |
| TrackedImageInfo | GetTrackableImageInfo (int trackableId) |
| void | SetFeatureDetector (FeatureDetectorType detectorType) |
| FeatureDetectorType | GetFeatureDetector (void) |
| void | SetMinRequiredDetectedFeatures (int num) |
| int | GetMinRequiredDetectedFeatures (void) |
| void | SetHomographyEstimationRANSACThreshold (double thresh) |
| double | GetHomographyEstimationRANSACThreshold (void) |
| void | SetMaximumNumberOfMarkersToTrack (int maximumNumberOfMarkersToTrack) |
| int | GetMaximumNumberOfMarkersToTrack (void) |
| void | SetTrackerVisualizationActive (bool active) |
| void * | GetTrackerVisualization (void) |
|
strong |
Defaults to defaultDetectorType.
| Enumerator | |
|---|---|
| Akaze | |
| ORB | |
| Brisk | |
| Kaze | |
| SIFT | |
| PlanarTracker::PlanarTracker | ( | ) |
|
default |
|
default |
| void PlanarTracker::AddMarker | ( | std::shared_ptr< unsigned char > | buff, |
| std::string | fileName, | ||
| int | width, | ||
| int | height, | ||
| int | uid, | ||
| float | scale ) |
| void PlanarTracker::AddMarker | ( | std::string | imageName, |
| int | uid, | ||
| float | scale ) |
| bool PlanarTracker::ChangeImageId | ( | int | prevId, |
| int | newId ) |
| PlanarTracker::FeatureDetectorType PlanarTracker::GetFeatureDetector | ( | void | ) |
| double PlanarTracker::GetHomographyEstimationRANSACThreshold | ( | void | ) |
| std::vector< int > PlanarTracker::GetImageIds | ( | ) |
| int PlanarTracker::GetMaximumNumberOfMarkersToTrack | ( | void | ) |
| int PlanarTracker::GetMinRequiredDetectedFeatures | ( | void | ) |
| TrackedImageInfo PlanarTracker::GetTrackableImageInfo | ( | int | trackableId | ) |
| bool PlanarTracker::GetTrackablePose | ( | int | trackableId, |
| float | transMat[3][4] ) |
If trackable is not visible, returns false, otherwise retrieves pose of trackable into transMat and returns true.
| void * PlanarTracker::GetTrackerVisualization | ( | void | ) |
| void PlanarTracker::Initialise | ( | ARParam | cParam | ) |
Initialise the tracker with the supplied camera parameters.
The supplied camera parameters will be used as the source for the size of video frames submitted to ProcessFrameData, and also the source for the camera lens intrinsics and distortion parameters. These values are copied from the supplied ARParam.
| bool PlanarTracker::IsTrackableVisible | ( | int | trackableId | ) |
| bool PlanarTracker::LoadTrackableDatabase | ( | std::string | fileName | ) |
|
default |
| void PlanarTracker::ProcessFrameData | ( | unsigned char * | frame | ) |
Perform tracking on a single frame of video.
The frame is passed as a single buffer of 8-bit greyscale pixels, starting with the top-left-most pixel of the frame and proceeding first by row, then by column. The size of the buffer must exactly match that passed in xFrameSize and yFrameSize parameters to Initialise() (i.e. xFrameSize * yFrameSize bytes). The frame data must remain valid for the entire duration of the call.
| void PlanarTracker::RemoveAllMarkers | ( | ) |
| bool PlanarTracker::SaveTrackableDatabase | ( | std::string | fileName | ) |
| void PlanarTracker::SetFeatureDetector | ( | FeatureDetectorType | detectorType | ) |
| void PlanarTracker::SetHomographyEstimationRANSACThreshold | ( | double | thresh | ) |
| void PlanarTracker::SetMaximumNumberOfMarkersToTrack | ( | int | maximumNumberOfMarkersToTrack | ) |
| void PlanarTracker::SetMinRequiredDetectedFeatures | ( | int | num | ) |
| void PlanarTracker::SetTrackerVisualizationActive | ( | bool | active | ) |
1.18.0