BitmapToolkit Scol plugin
|
This class represents a marker. It is a vector of the fours corners ot the marker. More...
#include <ArTkMarker.h>
Public Member Functions | |
ArTkMarker (std::string filePath, unsigned int nid, float size, unsigned int maxFeatures=600) | |
ArTkMarker (cv::Mat tpl, unsigned int mid, float size, unsigned int maxFeatures=600) | |
~ArTkMarker () | |
void | SetTrackedImage (cv::Mat tpl) |
void | RegisterNextFrame (cv::Point point, cv::Size size) |
bool | GetWarpedMarker (cv::Mat &image) |
bool | RegisterCurrentFrame (const cv::Mat &frame, cv::Size camsize, float tscale=1.0f) |
bool | TrackFrame (AR2HandleT *ar2handle, const cv::Mat &color, const cv::Mat &frame, ArCameraParam &camParams, const bool &reverse) |
void | StartTracking (cv::Mat color, const float camPose[3][4], ArCameraParam &camParams, const bool &reverse) |
int | GetPageNum () |
void | SetPageNum (int page) |
KpmRefDataSet * | GetDataSet () |
bool | SaveData (std::string path) |
bool | IsTracked () |
bool | IsTrained () |
Public Member Functions inherited from ArMarker | |
ArMarker (unsigned int nid, float markerSize=-1, MarkerType type=AR_ARUCO_MARKER) | |
virtual | ~ArMarker () |
cv::Mat | GetMarkerBitmap (int size) |
void | SetPosition (Vector3 pos) |
void | SetPixelPosition (Vector3 pixelpos) |
void | SetOrientation (BtQuaternion orientation) |
void | Draw (cv::Mat image) |
void | SetCoords (std::vector< cv::Point2f > coords) |
Vector3 | GetPosition () |
Vector3 | GetPixelPosition () |
BtQuaternion | GetOrientation () |
std::vector< cv::Point2f > | GetCorners () |
void | SetSize (float size) |
float | GetSize () |
unsigned int | GetID () |
MarkerType | GetType () |
void | SetVisible (bool visible) |
bool | IsVisible () |
void | Update (ArCameraParam &camparam, aruco::Marker &marker, bool reverse) |
void | rotateXAxis (cv::Mat &rotation) |
Public Attributes | |
std::vector< cv::Point2f > | m_lastCorner |
Protected Attributes | |
cv::Mat | m_image |
bool | m_isTracked |
bool | m_isTrained |
Protected Attributes inherited from ArMarker | |
boost::mutex | markerMutex |
boost::mutex | killMutex |
boost::mutex | m_thread_lock |
Vector3 | m_pos |
Vector3 | m_pixel_pos |
BtQuaternion | m_orientation |
bool | m_visible |
bool | m_needUpdate |
float | m_size |
bool | m_bUpdating |
Additional Inherited Members | |
Public Types inherited from ArMarker | |
enum | MarkerType { AR_ARUCO_MARKER = 0 , AR_FFT_MARKER = 1 , AR_FACE_MARKER = 2 , AR_ARTK_FFT_MARKER = 3 } |
This class represents a marker. It is a vector of the fours corners ot the marker.
Definition at line 50 of file ArTkMarker.h.
ArTkMarker::ArTkMarker | ( | std::string | filePath, |
unsigned int | nid, | ||
float | size, | ||
unsigned int | maxFeatures = 600 |
||
) |
Definition at line 484 of file ArTkMarker.cpp.
ArTkMarker::ArTkMarker | ( | cv::Mat | tpl, |
unsigned int | mid, | ||
float | size, | ||
unsigned int | maxFeatures = 600 |
||
) |
Definition at line 566 of file ArTkMarker.cpp.
ArTkMarker::~ArTkMarker | ( | ) |
Definition at line 674 of file ArTkMarker.cpp.
KpmRefDataSet * ArTkMarker::GetDataSet | ( | ) |
Definition at line 741 of file ArTkMarker.cpp.
int ArTkMarker::GetPageNum | ( | ) |
Definition at line 786 of file ArTkMarker.cpp.
bool ArTkMarker::GetWarpedMarker | ( | cv::Mat & | image | ) |
Definition at line 1058 of file ArTkMarker.cpp.
bool ArTkMarker::IsTracked | ( | ) |
Definition at line 810 of file ArTkMarker.cpp.
bool ArTkMarker::IsTrained | ( | ) |
Definition at line 816 of file ArTkMarker.cpp.
bool ArTkMarker::RegisterCurrentFrame | ( | const cv::Mat & | frame, |
cv::Size | camsize, | ||
float | tscale = 1.0f |
||
) |
Definition at line 1263 of file ArTkMarker.cpp.
void ArTkMarker::RegisterNextFrame | ( | cv::Point | point, |
cv::Size | size | ||
) |
Definition at line 1051 of file ArTkMarker.cpp.
bool ArTkMarker::SaveData | ( | std::string | path | ) |
Definition at line 697 of file ArTkMarker.cpp.
void ArTkMarker::SetPageNum | ( | int | page | ) |
Definition at line 792 of file ArTkMarker.cpp.
void ArTkMarker::SetTrackedImage | ( | cv::Mat | tpl | ) |
Definition at line 581 of file ArTkMarker.cpp.
void ArTkMarker::StartTracking | ( | cv::Mat | color, |
const float | camPose[3][4], | ||
ArCameraParam & | camParams, | ||
const bool & | reverse | ||
) |
Definition at line 1238 of file ArTkMarker.cpp.
bool ArTkMarker::TrackFrame | ( | AR2HandleT * | ar2handle, |
const cv::Mat & | color, | ||
const cv::Mat & | frame, | ||
ArCameraParam & | camParams, | ||
const bool & | reverse | ||
) |
Definition at line 1309 of file ArTkMarker.cpp.
|
protected |
Definition at line 53 of file ArTkMarker.h.
|
protected |
Definition at line 54 of file ArTkMarker.h.
|
protected |
Definition at line 55 of file ArTkMarker.h.
std::vector<cv::Point2f> ArTkMarker::m_lastCorner |
Definition at line 57 of file ArTkMarker.h.