Project

General

Profile

BitmapToolkit Scol plugin

This class represents a marker. It is a vector of the fours corners ot the marker. More...

#include <ArTkMarker.h>

Inheritance diagram for ArTkMarker:
ArMarker

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 }
 

Detailed Description

This class represents a marker. It is a vector of the fours corners ot the marker.

Definition at line 50 of file ArTkMarker.h.

Constructor & Destructor Documentation

◆ ArTkMarker() [1/2]

ArTkMarker::ArTkMarker ( std::string  filePath,
unsigned int  nid,
float  size,
unsigned int  maxFeatures = 600 
)

Definition at line 484 of file ArTkMarker.cpp.

◆ ArTkMarker() [2/2]

ArTkMarker::ArTkMarker ( cv::Mat  tpl,
unsigned int  mid,
float  size,
unsigned int  maxFeatures = 600 
)

Definition at line 566 of file ArTkMarker.cpp.

◆ ~ArTkMarker()

ArTkMarker::~ArTkMarker ( )

Definition at line 674 of file ArTkMarker.cpp.

Member Function Documentation

◆ GetDataSet()

KpmRefDataSet * ArTkMarker::GetDataSet ( )

Definition at line 741 of file ArTkMarker.cpp.

◆ GetPageNum()

int ArTkMarker::GetPageNum ( )

Definition at line 786 of file ArTkMarker.cpp.

◆ GetWarpedMarker()

bool ArTkMarker::GetWarpedMarker ( cv::Mat &  image)

Definition at line 1058 of file ArTkMarker.cpp.

◆ IsTracked()

bool ArTkMarker::IsTracked ( )

Definition at line 810 of file ArTkMarker.cpp.

◆ IsTrained()

bool ArTkMarker::IsTrained ( )

Definition at line 816 of file ArTkMarker.cpp.

◆ RegisterCurrentFrame()

bool ArTkMarker::RegisterCurrentFrame ( const cv::Mat &  frame,
cv::Size  camsize,
float  tscale = 1.0f 
)

Definition at line 1263 of file ArTkMarker.cpp.

◆ RegisterNextFrame()

void ArTkMarker::RegisterNextFrame ( cv::Point  point,
cv::Size  size 
)

Definition at line 1051 of file ArTkMarker.cpp.

◆ SaveData()

bool ArTkMarker::SaveData ( std::string  path)

Definition at line 697 of file ArTkMarker.cpp.

◆ SetPageNum()

void ArTkMarker::SetPageNum ( int  page)

Definition at line 792 of file ArTkMarker.cpp.

◆ SetTrackedImage()

void ArTkMarker::SetTrackedImage ( cv::Mat  tpl)

Definition at line 581 of file ArTkMarker.cpp.

◆ StartTracking()

void ArTkMarker::StartTracking ( cv::Mat  color,
const float  camPose[3][4],
ArCameraParam camParams,
const bool &  reverse 
)

Definition at line 1238 of file ArTkMarker.cpp.

◆ TrackFrame()

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.

Member Data Documentation

◆ m_image

cv::Mat ArTkMarker::m_image
protected

Definition at line 53 of file ArTkMarker.h.

◆ m_isTracked

bool ArTkMarker::m_isTracked
protected

Definition at line 54 of file ArTkMarker.h.

◆ m_isTrained

bool ArTkMarker::m_isTrained
protected

Definition at line 55 of file ArTkMarker.h.

◆ m_lastCorner

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

Definition at line 57 of file ArTkMarker.h.


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