BitmapToolkit Scol plugin
Public Member Functions | Public Attributes | List of all members
ArFaceMarker Class Reference

#include <ArFaceMarker.h>

Inheritance diagram for ArFaceMarker:
ArFeaturedMarker ArMarker

Public Member Functions

 ArFaceMarker (unsigned int mid, float size)
 
 ~ArFaceMarker ()
 
void SetImage (const cv::Mat image, std::vector< cv::Rect > objRects)
 
bool detectMotionFlow (cv::Mat &frame)
 
bool IsInitialized ()
 
void Update (cv::Mat frame, cv::Mat color, aruco::CameraParameters &camparam, bool reverse)
 
 ArFaceMarker (unsigned int mid)
 
 ~ArFaceMarker ()
 
void calculateFeaturedExtrinsics (float markerSize, aruco::CameraParameters &camParams, bool setYPerperdicular=true) throw (cv::Exception)
 
void SetImage (const cv::Mat image, std::vector< cv::Rect > objRects)
 
bool detectMotionFlow (cv::Mat &frame)
 
- 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
 

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 }
 
- 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
 

Detailed Description

Definition at line 48 of file ArFaceMarker.h.

Constructor & Destructor Documentation

◆ ArFaceMarker() [1/2]

ArFaceMarker::ArFaceMarker ( unsigned int  mid,
float  size 
)

Definition at line 44 of file ArFaceMarker.cpp.

◆ ~ArFaceMarker() [1/2]

ArFaceMarker::~ArFaceMarker ( )

Definition at line 184 of file ArFaceMarker.cpp.

◆ ArFaceMarker() [2/2]

ArFaceMarker::ArFaceMarker ( unsigned int  mid)

Definition at line 39 of file ArFaceMarker_patch.cpp.

◆ ~ArFaceMarker() [2/2]

ArFaceMarker::~ArFaceMarker ( )

Member Function Documentation

◆ calculateFeaturedExtrinsics()

void ArFaceMarker::calculateFeaturedExtrinsics ( float  markerSize,
aruco::CameraParameters &  camParams,
bool  setYPerperdicular = true 
)
throw (cv::Exception
)

Definition at line 606 of file ArFaceMarker_patch.cpp.

◆ detectMotionFlow() [1/2]

bool ArFaceMarker::detectMotionFlow ( cv::Mat &  frame)

Definition at line 198 of file ArFaceMarker.cpp.

◆ detectMotionFlow() [2/2]

bool ArFaceMarker::detectMotionFlow ( cv::Mat &  frame)

◆ IsInitialized()

bool ArFaceMarker::IsInitialized ( )

Definition at line 61 of file ArFaceMarker.cpp.

◆ SetImage() [1/2]

void ArFaceMarker::SetImage ( const cv::Mat  image,
std::vector< cv::Rect >  objRects 
)

Definition at line 66 of file ArFaceMarker.cpp.

◆ SetImage() [2/2]

void ArFaceMarker::SetImage ( const cv::Mat  image,
std::vector< cv::Rect >  objRects 
)

◆ Update()

void ArFaceMarker::Update ( cv::Mat  frame,
cv::Mat  color,
aruco::CameraParameters &  camparam,
bool  reverse 
)

Definition at line 574 of file ArFaceMarker.cpp.

Member Data Documentation

◆ m_lastCorner

std::vector< cv::Point2f > ArFaceMarker::m_lastCorner

Definition at line 51 of file ArFaceMarker.h.


The documentation for this class was generated from the following files: