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 |
Detailed Description
Definition at line 37 of file ArMarker.h.
Member Enumeration Documentation
◆ MarkerType
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.
Constructor & Destructor Documentation
◆ ArMarker()
ArMarker::ArMarker | ( | unsigned int | nid, |
float | markerSize = -1 , |
||
MarkerType | type = AR_ARUCO_MARKER |
||
) |
Definition at line 29 of file ArMarker.cpp.
◆ ~ArMarker()
|
virtual |
Definition at line 43 of file ArMarker.cpp.
Member Function Documentation
◆ Draw()
void ArMarker::Draw | ( | cv::Mat | image | ) |
Definition at line 125 of file ArMarker.cpp.
◆ GetCorners()
std::vector< cv::Point2f > ArMarker::GetCorners | ( | ) |
Definition at line 325 of file ArMarker.cpp.
◆ GetID()
unsigned int ArMarker::GetID | ( | ) |
Definition at line 90 of file ArMarker.cpp.
◆ GetMarkerBitmap()
cv::Mat ArMarker::GetMarkerBitmap | ( | int | size | ) |
Definition at line 47 of file ArMarker.cpp.
◆ GetOrientation()
BtQuaternion ArMarker::GetOrientation | ( | ) |
Definition at line 84 of file ArMarker.cpp.
◆ GetPixelPosition()
Vector3 ArMarker::GetPixelPosition | ( | ) |
Definition at line 78 of file ArMarker.cpp.
◆ GetPosition()
Vector3 ArMarker::GetPosition | ( | ) |
Definition at line 72 of file ArMarker.cpp.
◆ GetSize()
float ArMarker::GetSize | ( | ) |
Definition at line 119 of file ArMarker.cpp.
◆ GetType()
ArMarker::MarkerType ArMarker::GetType | ( | ) |
Definition at line 95 of file ArMarker.cpp.
◆ IsVisible()
bool ArMarker::IsVisible | ( | ) |
Definition at line 106 of file ArMarker.cpp.
◆ rotateXAxis()
void ArMarker::rotateXAxis | ( | cv::Mat & | rotation | ) |
Definition at line 308 of file ArMarker.cpp.
◆ SetCoords()
void ArMarker::SetCoords | ( | std::vector< cv::Point2f > | coords | ) |
Definition at line 158 of file ArMarker.cpp.
◆ SetOrientation()
void ArMarker::SetOrientation | ( | BtQuaternion | orientation | ) |
Definition at line 67 of file ArMarker.cpp.
◆ SetPixelPosition()
void ArMarker::SetPixelPosition | ( | Vector3 | pixelpos | ) |
Definition at line 62 of file ArMarker.cpp.
◆ SetPosition()
void ArMarker::SetPosition | ( | Vector3 | pos | ) |
Definition at line 57 of file ArMarker.cpp.
◆ SetSize()
void ArMarker::SetSize | ( | float | size | ) |
Definition at line 113 of file ArMarker.cpp.
◆ SetVisible()
void ArMarker::SetVisible | ( | bool | visible | ) |
Definition at line 100 of file ArMarker.cpp.
◆ Update()
void ArMarker::Update | ( | ArCameraParam & | camparam, |
aruco::Marker & | marker, | ||
bool | reverse | ||
) |
Definition at line 167 of file ArMarker.cpp.
Member Data Documentation
◆ killMutex
|
protected |
Definition at line 49 of file ArMarker.h.
◆ m_bUpdating
|
protected |
Definition at line 57 of file ArMarker.h.
◆ m_needUpdate
|
protected |
Definition at line 55 of file ArMarker.h.
◆ m_orientation
|
protected |
Definition at line 53 of file ArMarker.h.
◆ m_pixel_pos
|
protected |
Definition at line 52 of file ArMarker.h.
◆ m_pos
|
protected |
Definition at line 51 of file ArMarker.h.
◆ m_size
|
protected |
Definition at line 56 of file ArMarker.h.
◆ m_thread_lock
|
protected |
Definition at line 50 of file ArMarker.h.
◆ m_visible
|
protected |
Definition at line 54 of file ArMarker.h.
◆ markerMutex
|
protected |
Definition at line 48 of file ArMarker.h.
The documentation for this class was generated from the following files:
- include/ArMarker.h
- src/ArMarker.cpp
Generated by 1.9.8