Base class of labelers. A labelers receive a square of the image and determines if it has a valid marker, its id and rotation Additionally, it implements the factory model. More...
#include <markerlabeler.h>
Public Member Functions | |
virtual bool | detect (const cv::Mat &in, int &marker_id, int &nRotations)=0 |
virtual int | getBestInputSize () |
getBestInputSize if desired, you can set the desired input size to the detect function More... | |
virtual std::string | getName () const =0 |
virtual | ~MarkerLabeler () |
Static Public Member Functions | |
static cv::Ptr< MarkerLabeler > | create (Dictionary::DICT_TYPES dict_type, float error_correction_rate=0) throw (cv::Exception) |
static cv::Ptr< MarkerLabeler > | create (std::string detector, std::string params="") throw (cv::Exception) |
create Factory function that returns the desired detector More... | |
Base class of labelers. A labelers receive a square of the image and determines if it has a valid marker, its id and rotation Additionally, it implements the factory model.
Definition at line 39 of file markerlabeler.h.
|
inlinevirtual |
Definition at line 89 of file markerlabeler.h.
|
static |
Factory function that returns a labeler for a given dictionary
dict_type | type of dictionary |
error_correction_rate | some dictionaries are subsceptible of error correction. This params specify the correction rate. 0 means no correction at all. 1 means full correction (maximum correction bits = (tau-1) /2, tau= predefined mimum intermarker distance). |
If you want correction capabilities and not sure how much, use 0.5 in this parameter
Definition at line 5 of file markerlabeler.cpp.
|
static |
create Factory function that returns the desired detector
Factory function that returns the desired detector
detector |
|
params | optional parameters When HRM, the path to the dictionary desired. |
Definition at line 15 of file markerlabeler.cpp.
|
pure virtual |
function that identifies a marker.
in | input image to analyze |
marker_id | id 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. |
Implemented in aruco::SVMMarkers, and aruco::DictionaryBased.
|
inlinevirtual |
getBestInputSize if desired, you can set the desired input size to the detect function
Reimplemented in aruco::hrm::HighlyReliableMarkers, and aruco::SVMMarkers.
Definition at line 84 of file markerlabeler.h.
|
pure virtual |
Implemented in aruco::SVMMarkers, and aruco::DictionaryBased.