Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
aruco::hrm::HighlyReliableMarkers Class Reference

#include <highlyreliablemarkers.h>

Inheritance diagram for aruco::hrm::HighlyReliableMarkers:
Inheritance graph
[legend]

Classes

class  BalancedBinaryTree
 

Public Member Functions

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

Static Public Member Functions

static DictionarygetDictionary ()
 
static bool loadDictionary (Dictionary D, float correctionDistance=1)
 
static bool loadDictionary (std::string filename, float correctionDistance=1)
 
- 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...
 

Static Private Member Functions

static bool checkBorders (cv::Mat grey)
 
static MarkerCode getMarkerCode (const cv::Mat &grey)
 

Static Private Attributes

static BalancedBinaryTree _binaryTree
 
static unsigned int _correctionDistance
 
static Dictionary _D
 
static unsigned int _n
 
static unsigned int _ncellsBorder
 
static int _swidth
 

Detailed Description

Highly Reliable Marker Detector Class

Definition at line 211 of file highlyreliablemarkers.h.

Member Function Documentation

bool aruco::hrm::HighlyReliableMarkers::checkBorders ( cv::Mat  grey)
staticprivate

Check marker borders cell in the canonical image are black

Definition at line 352 of file highlyreliablemarkers.cpp.

int aruco::hrm::HighlyReliableMarkers::detect ( const cv::Mat &  in,
int &  nRotations 
)

Detect marker in a canonical image. Perform detection and error correction Return marker id in 0 rotation, or -1 if not found Assign the detected rotation of the marker to nRotation

Definition at line 299 of file highlyreliablemarkers.cpp.

int aruco::hrm::HighlyReliableMarkers::getBestInputSize ( )
inlinevirtual

getBestInputSize if desired, you can set the desired input size to the detect function

Returns
-1 if detect accept any type of input, or a size otherwise

Reimplemented from aruco::MarkerLabeler.

Definition at line 259 of file highlyreliablemarkers.h.

static Dictionary& aruco::hrm::HighlyReliableMarkers::getDictionary ( )
inlinestatic

Definition at line 249 of file highlyreliablemarkers.h.

MarkerCode aruco::hrm::HighlyReliableMarkers::getMarkerCode ( const cv::Mat &  grey)
staticprivate

Return binary MarkerCode from a canonical image, it ignores borders

Definition at line 372 of file highlyreliablemarkers.cpp.

bool aruco::hrm::HighlyReliableMarkers::loadDictionary ( Dictionary  D,
float  correctionDistance = 1 
)
static

Load the dictionary that will be detected or read it directly from file

Definition at line 278 of file highlyreliablemarkers.cpp.

bool aruco::hrm::HighlyReliableMarkers::loadDictionary ( std::string  filename,
float  correctionDistance = 1 
)
static

Definition at line 290 of file highlyreliablemarkers.cpp.

Member Data Documentation

HighlyReliableMarkers::BalancedBinaryTree aruco::hrm::HighlyReliableMarkers::_binaryTree
staticprivate

Definition at line 263 of file highlyreliablemarkers.h.

unsigned int aruco::hrm::HighlyReliableMarkers::_correctionDistance
staticprivate

Definition at line 267 of file highlyreliablemarkers.h.

Dictionary aruco::hrm::HighlyReliableMarkers::_D
staticprivate

Definition at line 262 of file highlyreliablemarkers.h.

unsigned int aruco::hrm::HighlyReliableMarkers::_n
staticprivate

Definition at line 265 of file highlyreliablemarkers.h.

unsigned int aruco::hrm::HighlyReliableMarkers::_ncellsBorder
staticprivate

Definition at line 266 of file highlyreliablemarkers.h.

int aruco::hrm::HighlyReliableMarkers::_swidth
staticprivate

Definition at line 268 of file highlyreliablemarkers.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