Project

General

Profile

BitmapToolkit Scol plugin

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

#include <ArFeaturedMarker.h>

Inheritance diagram for ArFeaturedMarker:
ArMarker ArFaceMarker

Public Member Functions

 ArFeaturedMarker (std::string filePath, unsigned int nid, float size, unsigned int maxFeatures=600)
 
 ArFeaturedMarker (cv::Mat tpl, unsigned int nid, float size, unsigned int maxFeatures=600)
 
 ArFeaturedMarker (unsigned int nid, float size)
 
virtual ~ArFeaturedMarker ()
 
void SetTrackedImage (cv::Mat tpl)
 
void RegisterNextFrame (cv::Point point, cv::Size size)
 
bool GetWarpedMarker (cv::Mat &image)
 
void calculateFeaturedExtrinsics (float markerSize, aruco::CameraParameters &camParams, bool setYPerpendicular=true)
 
bool detectFeatured (cv::Mat &frame, cv::Mat &color, cv::Size camsize)
 
void Update (cv::Mat frame, cv::Mat color, aruco::CameraParameters &camparam, bool reverse)
 
- 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
 
cv::Mat m_dmask
 
bool m_lastFound
 
std::vector< cv::Point2f > m_prevFramePoints
 
std::vector< cv::Mat > m_prevPyr
 
std::vector< cv::Mat > m_nextPyr
 
- 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 103 of file ArFeaturedMarker.h.

Constructor & Destructor Documentation

◆ ArFeaturedMarker() [1/3]

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

Definition at line 235 of file ArFeaturedMarker.cpp.

◆ ArFeaturedMarker() [2/3]

ArFeaturedMarker::ArFeaturedMarker ( cv::Mat  tpl,
unsigned int  nid,
float  size,
unsigned int  maxFeatures = 600 
)

Definition at line 288 of file ArFeaturedMarker.cpp.

◆ ArFeaturedMarker() [3/3]

ArFeaturedMarker::ArFeaturedMarker ( unsigned int  nid,
float  size 
)

Definition at line 299 of file ArFeaturedMarker.cpp.

◆ ~ArFeaturedMarker()

ArFeaturedMarker::~ArFeaturedMarker ( )
virtual

Definition at line 380 of file ArFeaturedMarker.cpp.

Member Function Documentation

◆ calculateFeaturedExtrinsics()

void ArFeaturedMarker::calculateFeaturedExtrinsics ( float  markerSize,
aruco::CameraParameters &  camParams,
bool  setYPerpendicular = true 
)

Definition at line 838 of file ArFeaturedMarker.cpp.

◆ detectFeatured()

bool ArFeaturedMarker::detectFeatured ( cv::Mat &  frame,
cv::Mat &  color,
cv::Size  camsize 
)

Definition at line 677 of file ArFeaturedMarker.cpp.

◆ GetWarpedMarker()

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

Definition at line 665 of file ArFeaturedMarker.cpp.

◆ RegisterNextFrame()

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

Definition at line 442 of file ArFeaturedMarker.cpp.

◆ SetTrackedImage()

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

Definition at line 307 of file ArFeaturedMarker.cpp.

◆ Update()

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

Definition at line 903 of file ArFeaturedMarker.cpp.

Member Data Documentation

◆ m_dmask

cv::Mat ArFeaturedMarker::m_dmask
protected

Definition at line 107 of file ArFeaturedMarker.h.

◆ m_image

cv::Mat ArFeaturedMarker::m_image
protected

Definition at line 106 of file ArFeaturedMarker.h.

◆ m_lastCorner

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

Definition at line 114 of file ArFeaturedMarker.h.

◆ m_lastFound

bool ArFeaturedMarker::m_lastFound
protected

Definition at line 108 of file ArFeaturedMarker.h.

◆ m_nextPyr

std::vector<cv::Mat> ArFeaturedMarker::m_nextPyr
protected

Definition at line 111 of file ArFeaturedMarker.h.

◆ m_prevFramePoints

std::vector<cv::Point2f> ArFeaturedMarker::m_prevFramePoints
protected

Definition at line 109 of file ArFeaturedMarker.h.

◆ m_prevPyr

std::vector<cv::Mat> ArFeaturedMarker::m_prevPyr
protected

Definition at line 110 of file ArFeaturedMarker.h.


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