BitmapToolkit Scol plugin
|
#include <ArMarker.h>
Public Types | |
enum | MarkerType { AR_ARUCO_MARKER = 0 , AR_FFT_MARKER = 1 , AR_FACE_MARKER = 2 , AR_ARTK_FFT_MARKER = 3 } |
Public Member Functions | |
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) |
Protected Attributes | |
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 |
Definition at line 37 of file ArMarker.h.
enum ArMarker::MarkerType |
Enumerator | |
---|---|
AR_ARUCO_MARKER | |
AR_FFT_MARKER | |
AR_FACE_MARKER | |
AR_ARTK_FFT_MARKER |
Definition at line 40 of file ArMarker.h.
ArMarker::ArMarker | ( | unsigned int | nid, |
float | markerSize = -1 , |
||
MarkerType | type = AR_ARUCO_MARKER |
||
) |
Definition at line 29 of file ArMarker.cpp.
|
virtual |
Definition at line 43 of file ArMarker.cpp.
void ArMarker::Draw | ( | cv::Mat | image | ) |
Definition at line 125 of file ArMarker.cpp.
std::vector< cv::Point2f > ArMarker::GetCorners | ( | ) |
Definition at line 325 of file ArMarker.cpp.
unsigned int ArMarker::GetID | ( | ) |
Definition at line 90 of file ArMarker.cpp.
cv::Mat ArMarker::GetMarkerBitmap | ( | int | size | ) |
Definition at line 47 of file ArMarker.cpp.
BtQuaternion ArMarker::GetOrientation | ( | ) |
Definition at line 84 of file ArMarker.cpp.
Vector3 ArMarker::GetPixelPosition | ( | ) |
Definition at line 78 of file ArMarker.cpp.
Vector3 ArMarker::GetPosition | ( | ) |
Definition at line 72 of file ArMarker.cpp.
float ArMarker::GetSize | ( | ) |
Definition at line 119 of file ArMarker.cpp.
ArMarker::MarkerType ArMarker::GetType | ( | ) |
Definition at line 95 of file ArMarker.cpp.
bool ArMarker::IsVisible | ( | ) |
Definition at line 106 of file ArMarker.cpp.
void ArMarker::rotateXAxis | ( | cv::Mat & | rotation | ) |
Definition at line 308 of file ArMarker.cpp.
void ArMarker::SetCoords | ( | std::vector< cv::Point2f > | coords | ) |
Definition at line 158 of file ArMarker.cpp.
void ArMarker::SetOrientation | ( | BtQuaternion | orientation | ) |
Definition at line 67 of file ArMarker.cpp.
void ArMarker::SetPixelPosition | ( | Vector3 | pixelpos | ) |
Definition at line 62 of file ArMarker.cpp.
void ArMarker::SetPosition | ( | Vector3 | pos | ) |
Definition at line 57 of file ArMarker.cpp.
void ArMarker::SetSize | ( | float | size | ) |
Definition at line 113 of file ArMarker.cpp.
void ArMarker::SetVisible | ( | bool | visible | ) |
Definition at line 100 of file ArMarker.cpp.
void ArMarker::Update | ( | ArCameraParam & | camparam, |
aruco::Marker & | marker, | ||
bool | reverse | ||
) |
Definition at line 167 of file ArMarker.cpp.
|
protected |
Definition at line 49 of file ArMarker.h.
|
protected |
Definition at line 57 of file ArMarker.h.
|
protected |
Definition at line 55 of file ArMarker.h.
|
protected |
Definition at line 53 of file ArMarker.h.
|
protected |
Definition at line 52 of file ArMarker.h.
|
protected |
Definition at line 51 of file ArMarker.h.
|
protected |
Definition at line 56 of file ArMarker.h.
|
protected |
Definition at line 50 of file ArMarker.h.
|
protected |
Definition at line 54 of file ArMarker.h.
|
protected |
Definition at line 48 of file ArMarker.h.