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

#include <fractallabeler.h>

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

Public Member Functions

bool detect (const cv::Mat &in, int &marker_id, int &nRotations, std::string &additionalInfo)
 
std::string getName () const
 
int getNSubdivisions () const
 getNSubdivisions returns the number of subdivisions in each axis that the iamge will be subject to. This is in dictionary based labelers, equals to the number of bits in each dimension plus the border bits. More...
 
bool load (const std::string &path)
 
void setConfiguration (const FractalMarkerSet &fractMarkerSet)
 
virtual ~FractalMarkerLabeler ()
 
- 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 ()
 

Static Public Member Functions

static cv::Ptr< FractalMarkerLabelercreate (FractalMarkerSet::CONF_TYPES conf)
 
static cv::Ptr< FractalMarkerLabelercreate (std::string params)
 
static bool isFractalDictionaryFile (const std::string &path)
 
- Static Public Member Functions inherited from aruco::MarkerLabeler
static cv::Ptr< MarkerLabelercreate (Dictionary::DICT_TYPES dict_type, float error_correction_rate=0)
 
static cv::Ptr< MarkerLabelercreate (std::string detector, std::string params="")
 create Factory function that returns the desired detector More...
 

Public Attributes

FractalMarkerSet _fractalMarkerSet
 

Private Member Functions

bool getInnerCode (const cv::Mat &thres_img, int total_nbits, std::vector< cv::Mat > &ids)
 
cv::Mat rotate (const cv::Mat &in)
 

Detailed Description

Definition at line 6 of file fractallabeler.h.

Constructor & Destructor Documentation

◆ ~FractalMarkerLabeler()

virtual aruco::FractalMarkerLabeler::~FractalMarkerLabeler ( )
inlinevirtual

Definition at line 29 of file fractallabeler.h.

Member Function Documentation

◆ create() [1/2]

static cv::Ptr<FractalMarkerLabeler> aruco::FractalMarkerLabeler::create ( FractalMarkerSet::CONF_TYPES  conf)
inlinestatic

Definition at line 17 of file fractallabeler.h.

◆ create() [2/2]

static cv::Ptr<FractalMarkerLabeler> aruco::FractalMarkerLabeler::create ( std::string  params)
inlinestatic

Definition at line 9 of file fractallabeler.h.

◆ detect()

bool aruco::FractalMarkerLabeler::detect ( const cv::Mat &  in,
int &  marker_id,
int &  nRotations,
std::string &  additionalInfo 
)
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 12 of file fractallabeler.cpp.

◆ getInnerCode()

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

Definition at line 70 of file fractallabeler.cpp.

◆ getName()

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

Implements aruco::MarkerLabeler.

Definition at line 64 of file fractallabeler.cpp.

◆ getNSubdivisions()

int aruco::FractalMarkerLabeler::getNSubdivisions ( ) const
inlinevirtual

getNSubdivisions returns the number of subdivisions in each axis that the iamge will be subject to. This is in dictionary based labelers, equals to the number of bits in each dimension plus the border bits.

Returns

Reimplemented from aruco::MarkerLabeler.

Definition at line 41 of file fractallabeler.h.

◆ isFractalDictionaryFile()

static bool aruco::FractalMarkerLabeler::isFractalDictionaryFile ( const std::string &  path)
static

◆ load()

bool aruco::FractalMarkerLabeler::load ( const std::string &  path)

◆ rotate()

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

Definition at line 132 of file fractallabeler.cpp.

◆ setConfiguration()

void aruco::FractalMarkerLabeler::setConfiguration ( const FractalMarkerSet fractMarkerSet)

Definition at line 7 of file fractallabeler.cpp.

Member Data Documentation

◆ _fractalMarkerSet

FractalMarkerSet aruco::FractalMarkerLabeler::_fractalMarkerSet

Definition at line 46 of file fractallabeler.h.


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


aruco
Author(s): Rafael Muñoz Salinas , Bence Magyar
autogenerated on Sat Sep 23 2023 02:26:45