Class DictionaryBased

Inheritance Relationships

Base Type

Class Documentation

class DictionaryBased : public aruco::MarkerLabeler

Labeler using a dictionary

Public Functions

inline virtual ~DictionaryBased()
void setParams(const Dictionary &dic, float max_correction_rate)
virtual bool detect(const cv::Mat &in, int &marker_id, int &nRotations, std::string &additionalInfo)

function that identifies a marker.

Parameters:
  • 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.

Returns:

true marker valid, false otherwise

virtual std::string getName() const
inline virtual 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.

Returns:

inline std::vector<Dictionary> getDictionaries() const