Public Member Functions | Private Member Functions | Private Attributes | List of all members
aruco::DictionaryBased Class Reference

#include <dictionary_based.h>

Inheritance diagram for aruco::DictionaryBased:
Inheritance graph
[legend]

Public Member Functions

bool detect (const cv::Mat &in, int &marker_id, int &nRotations)
 
std::string getName () const
 
void setParams (const Dictionary &dic, float max_correction_rate)
 
virtual ~DictionaryBased ()
 
- Public Member Functions inherited from aruco::MarkerLabeler
virtual int getBestInputSize ()
 getBestInputSize if desired, you can set the desired input size to the detect function More...
 
virtual ~MarkerLabeler ()
 

Private Member Functions

bool getInnerCode (const cv::Mat &thres_img, int total_nbits, vector< uint64_t > &ids)
 
cv::Mat rotate (const cv::Mat &in)
 
void toMat (uint64_t code, int nbits_sq, cv::Mat &out)
 
uint64_t touulong (const cv::Mat &code)
 

Private Attributes

Dictionary _dic
 
int _maxCorrectionAllowed
 

Additional Inherited Members

- Static Public Member Functions inherited from aruco::MarkerLabeler
static cv::Ptr< MarkerLabelercreate (Dictionary::DICT_TYPES dict_type, float error_correction_rate=0) throw (cv::Exception)
 
static cv::Ptr< MarkerLabelercreate (std::string detector, std::string params="") throw (cv::Exception)
 create Factory function that returns the desired detector More...
 

Detailed Description

Labeler using a dictionary

Definition at line 40 of file dictionary_based.h.

Constructor & Destructor Documentation

virtual aruco::DictionaryBased::~DictionaryBased ( )
inlinevirtual

Definition at line 43 of file dictionary_based.h.

Member Function Documentation

bool aruco::DictionaryBased::detect ( const cv::Mat &  in,
int &  marker_id,
int &  nRotations 
)
virtual

function that identifies a marker.

Parameters
ininput image to analyze
marker_idid of the marker (if valid)
nRotations: output parameter nRotations must indicate how many times the marker must be rotated clockwise 90 deg to be in its ideal position. (The way you would see it when you print it). This is employed to know always which is the corner that acts as reference system.
Returns
true marker valid, false otherwise

Implements aruco::MarkerLabeler.

Definition at line 43 of file dictionary_based.cpp.

bool aruco::DictionaryBased::getInnerCode ( const cv::Mat &  thres_img,
int  total_nbits,
vector< uint64_t > &  ids 
)
private

Definition at line 82 of file dictionary_based.cpp.

std::string aruco::DictionaryBased::getName ( ) const
virtual

Implements aruco::MarkerLabeler.

Definition at line 15 of file dictionary_based.cpp.

cv::Mat aruco::DictionaryBased::rotate ( const cv::Mat &  in)
private

Definition at line 140 of file dictionary_based.cpp.

void aruco::DictionaryBased::setParams ( const Dictionary dic,
float  max_correction_rate 
)

Definition at line 8 of file dictionary_based.cpp.

void aruco::DictionaryBased::toMat ( uint64_t  code,
int  nbits_sq,
cv::Mat &  out 
)
private

Definition at line 19 of file dictionary_based.cpp.

uint64_t aruco::DictionaryBased::touulong ( const cv::Mat &  code)
private

Definition at line 130 of file dictionary_based.cpp.

Member Data Documentation

Dictionary aruco::DictionaryBased::_dic
private

Definition at line 57 of file dictionary_based.h.

int aruco::DictionaryBased::_maxCorrectionAllowed
private

Definition at line 58 of file dictionary_based.h.


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


tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Jun 10 2019 15:41:03