#include <dictionary_based.h>
|
virtual bool | detect (const cv::Mat &in, int &marker_id, int &nRotations, std::string &additionalInfo) |
|
std::vector< Dictionary > | getDictionaries () const |
|
virtual std::string | getName () const |
|
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. More...
|
|
void | setParams (const Dictionary &dic, float max_correction_rate) |
|
virtual | ~DictionaryBased () |
|
virtual int | getBestInputSize () |
| getBestInputSize if desired, you can set the desired input size to the detect function More...
|
|
virtual | ~MarkerLabeler () |
|
|
bool | getInnerCode (const cv::Mat &thres_img, int total_nbits, std::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) |
|
Labeler using a dictionary
Definition at line 28 of file dictionary_based.h.
◆ ~DictionaryBased()
virtual aruco::DictionaryBased::~DictionaryBased |
( |
| ) |
|
|
inlinevirtual |
◆ detect()
bool aruco::DictionaryBased::detect |
( |
const cv::Mat & |
in, |
|
|
int & |
marker_id, |
|
|
int & |
nRotations, |
|
|
std::string & |
additionalInfo |
|
) |
| |
|
virtual |
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
Implements aruco::MarkerLabeler.
Definition at line 81 of file dictionary_based.cpp.
◆ getDictionaries()
std::vector<Dictionary> aruco::DictionaryBased::getDictionaries |
( |
| ) |
const |
|
inline |
◆ getInnerCode()
bool aruco::DictionaryBased::getInnerCode |
( |
const cv::Mat & |
thres_img, |
|
|
int |
total_nbits, |
|
|
std::vector< uint64_t > & |
ids |
|
) |
| |
|
private |
◆ getName()
std::string aruco::DictionaryBased::getName |
( |
| ) |
const |
|
virtual |
◆ getNSubdivisions()
virtual int aruco::DictionaryBased::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 44 of file dictionary_based.h.
◆ rotate()
cv::Mat aruco::DictionaryBased::rotate |
( |
const cv::Mat & |
in | ) |
|
|
private |
◆ setParams()
void aruco::DictionaryBased::setParams |
( |
const Dictionary & |
dic, |
|
|
float |
max_correction_rate |
|
) |
| |
◆ toMat()
void aruco::DictionaryBased::toMat |
( |
uint64_t |
code, |
|
|
int |
nbits_sq, |
|
|
cv::Mat & |
out |
|
) |
| |
|
private |
◆ touulong()
uint64_t aruco::DictionaryBased::touulong |
( |
const cv::Mat & |
code | ) |
|
|
private |
◆ _max_correction_rate
float aruco::DictionaryBased::_max_correction_rate |
|
private |
◆ _nsubdivisions
int aruco::DictionaryBased::_nsubdivisions = 0 |
|
private |
◆ dicttypename
std::string aruco::DictionaryBased::dicttypename |
|
private |
◆ nbits_dict
std::map<uint32_t, std::vector<Dictionary*> > aruco::DictionaryBased::nbits_dict |
|
private |
◆ vdic
std::vector<Dictionary> aruco::DictionaryBased::vdic |
|
private |
The documentation for this class was generated from the following files: