#include <dictionary.h>
| Public Types | |
| enum | DICT_TYPES { ARUCO, ARUCO_MIP_25h7, ARUCO_MIP_16h3, ARUCO_MIP_36h12, ARTAG, ARTOOLKITPLUS, ARTOOLKITPLUSBCH, TAG16h5, TAG25h7, TAG25h9, TAG36h11, TAG36h10 } | 
| Public Member Functions | |
| MarkerMap | createMarkerMap (cv::Size gridSize, int MarkerSize, int MarkerDistance, const std::vector< int > &Ids, bool chess_board=false) throw (cv::Exception) | 
| const std::map< uint64_t, uint16_t > & | getMapCode () const | 
| cv::Mat | getMarkerImage_id (int id, int bit_size, bool addWaterMark=true) | 
| Dictionary::getMarkerImage_id.  More... | |
| DICT_TYPES | getType () const | 
| bool | is (uint64_t code) const | 
| uint32_t | nbits () const | 
| int | operator[] (uint64_t code) | 
| void | readFromFile (std::string file) throw (cv::Exception) | 
| void | readFromStream (std::istream &str) throw (cv::Exception) | 
| void | saveToFile (std::string file) throw (cv::Exception) | 
| void | saveToStream (std::ostream &str) throw (cv::Exception) | 
| uint64_t | size () const | 
| uint32_t | tau () const | 
| Static Public Member Functions | |
| static std::vector< std::string > | getDicTypes () | 
| static DICT_TYPES | getTypeFromString (std::string str) throw (cv::Exception) | 
| static std::string | getTypeString (DICT_TYPES t) throw (cv::Exception) | 
| static Dictionary | loadPredefined (DICT_TYPES type) throw (cv::Exception) | 
| static Dictionary | loadPredefined (std::string type) throw (cv::Exception) | 
| Private Member Functions | |
| cv::Mat | getMarkerImage_code (uint64_t id, int nbits) | 
| void | insert (uint64_t code, int id) | 
| Static Private Member Functions | |
| static void | fromVector (const std::vector< uint64_t > &codes, std::map< uint64_t, uint16_t > &code_id_map) | 
| Private Attributes | |
| std::map< uint64_t, uint16_t > | _code_id | 
| uint32_t | _nbits | 
| uint32_t | _tau | 
| DICT_TYPES | _type | 
Represents a set of valid marker ids with a maximum size of 8x8 = 64 bits. In our approach, markers are seen as a pair code-id. The code is the internal binary code printed on the marker. Maximum size is 8x8 bits. The id is a smaller number you can use to identify it. You will use only the id
See enum DICT_TYPES for the set of dicitionaries availables
Definition at line 19 of file dictionary.h.
| Enumerator | |
|---|---|
| ARUCO | |
| ARUCO_MIP_25h7 | |
| ARUCO_MIP_16h3 | |
| ARUCO_MIP_36h12 | |
| ARTAG | |
| ARTOOLKITPLUS | |
| ARTOOLKITPLUSBCH | |
| TAG16h5 | |
| TAG25h7 | |
| TAG25h9 | |
| TAG36h11 | |
| TAG36h10 | |
Definition at line 24 of file dictionary.h.
| MarkerMap aruco::Dictionary::createMarkerMap | ( | cv::Size | gridSize, | 
| int | MarkerSize, | ||
| int | MarkerDistance, | ||
| const std::vector< int > & | Ids, | ||
| bool | chess_board = false | ||
| ) | |||
| throw | ( | cv::Exception | |
| ) | |||
Definition at line 276 of file dictionary.cpp.
| 
 | staticprivate | 
Definition at line 52 of file dictionary.cpp.
| 
 | static | 
Definition at line 270 of file dictionary.cpp.
| 
 | inline | 
Definition at line 45 of file dictionary.h.
| 
 | private | 
| cv::Mat aruco::Dictionary::getMarkerImage_id | ( | int | id, | 
| int | bit_size, | ||
| bool | addWaterMark = true | ||
| ) | 
| 
 | inline | 
Definition at line 36 of file dictionary.h.
| 
 | static | ||||||||||||||
Definition at line 253 of file dictionary.cpp.
| 
 | static | ||||||||||||||
Definition at line 235 of file dictionary.cpp.
| 
 | inlineprivate | 
Definition at line 76 of file dictionary.h.
| 
 | inline | 
Definition at line 34 of file dictionary.h.
| 
 | static | ||||||||||||||
Definition at line 63 of file dictionary.cpp.
| 
 | static | ||||||||||||||
Definition at line 58 of file dictionary.cpp.
| 
 | inline | 
Definition at line 41 of file dictionary.h.
| 
 | inline | 
Definition at line 48 of file dictionary.h.
| void aruco::Dictionary::readFromFile | ( | std::string | file | ) | |
| throw | ( | cv::Exception | |||
| ) | |||||
Definition at line 26 of file dictionary.cpp.
| void aruco::Dictionary::readFromStream | ( | std::istream & | str | ) | |
| throw | ( | cv::Exception | |||
| ) | |||||
Definition at line 41 of file dictionary.cpp.
| void aruco::Dictionary::saveToFile | ( | std::string | file | ) | |
| throw | ( | cv::Exception | |||
| ) | |||||
Definition at line 13 of file dictionary.cpp.
| void aruco::Dictionary::saveToStream | ( | std::ostream & | str | ) | |
| throw | ( | cv::Exception | |||
| ) | |||||
Definition at line 19 of file dictionary.cpp.
| 
 | inline | 
Definition at line 39 of file dictionary.h.
| 
 | inline | 
Definition at line 43 of file dictionary.h.
| 
 | private | 
Definition at line 79 of file dictionary.h.
| 
 | private | 
Definition at line 81 of file dictionary.h.
| 
 | private | 
Definition at line 82 of file dictionary.h.
| 
 | private | 
Definition at line 86 of file dictionary.h.