1 #ifndef ARUCO_DICTIONARY_     2 #define ARUCO_DICTIONARY_     9 #include <opencv2/core/core.hpp>    34     bool is(uint64_t code)
const{
return _code_id.find(code)!=_code_id.end();}
    39     uint64_t 
size()
const{
return _code_id.size();}
    41     uint32_t 
nbits()
const{
return _nbits;}
    43     uint32_t 
tau()
const{
return _tau;}
    45     const std::map<uint64_t,uint16_t> & 
getMapCode()
const{
return _code_id;}
    54     cv::Mat getMarkerImage_id(
int id,
int bit_size,
bool addWaterMark=
true);
    57     MarkerMap  createMarkerMap( cv::Size gridSize,
int MarkerSize,
int MarkerDistance, 
const std::vector<int> &Ids,
bool chess_board=
false) 
throw (cv::Exception);
    61     static Dictionary loadPredefined(std::string type) 
throw(cv::Exception);
    63     void saveToFile(std::string file)
throw(cv::Exception);
    64     void readFromFile(std::string file)
throw(cv::Exception);
    65     void saveToStream(std::ostream & str)
throw(cv::Exception);
    66     void readFromStream(std::istream &str)
throw(cv::Exception);
    71     static DICT_TYPES getTypeFromString(std::string str)  
throw(cv::Exception);
    72     static std::string getTypeString(
DICT_TYPES t)   
throw(cv::Exception);
    73     static std::vector<std::string> getDicTypes() ;
    76     void insert(uint64_t code,
int id){_code_id.insert(std::make_pair(code,
id));}
    77     static void fromVector(
const std::vector<uint64_t> &codes,std::map<uint64_t,uint16_t>  &code_id_map);
    84     cv::Mat getMarkerImage_code(uint64_t 
id,
int nbits);
 
void insert(uint64_t code, int id)
DICT_TYPES getType() const 
int operator[](uint64_t code)
const std::map< uint64_t, uint16_t > & getMapCode() const 
bool is(uint64_t code) const 
This class defines a set of markers whose locations are attached to a common reference system...
std::map< uint64_t, uint16_t > _code_id