17 #ifndef ArucoDictionaryBasedMarkerDetector_H 18 #define ArucoDictionaryBasedMarkerDetector_H 23 #include <opencv2/core/core.hpp> 39 virtual bool detect(
const cv::Mat& in,
int& marker_id,
int& nRotations,
40 std::string& additionalInfo);
42 virtual std::string
getName()
const;
56 bool getInnerCode(
const cv::Mat& thres_img,
int total_nbits, std::vector<uint64_t>& ids);
57 cv::Mat
rotate(
const cv::Mat& in);
58 uint64_t
touulong(
const cv::Mat& code);
59 std::vector<Dictionary>
vdic;
60 void toMat(uint64_t code,
int nbits_sq, cv::Mat& out);
void setParams(const Dictionary &dic, float max_correction_rate)
uint64_t touulong(const cv::Mat &code)
virtual std::string getName() const
float _max_correction_rate
cv::Mat rotate(const cv::Mat &in)
std::vector< Dictionary > getDictionaries() const
std::map< uint32_t, std::vector< Dictionary * > > nbits_dict
void toMat(uint64_t code, int nbits_sq, cv::Mat &out)
std::vector< Dictionary > vdic
bool getInnerCode(const cv::Mat &thres_img, int total_nbits, std::vector< uint64_t > &ids)
virtual int getNSubdivisions() const
getNSubdivisions returns the number of subdivisions in each axis that the iamge will be subject to...
virtual bool detect(const cv::Mat &in, int &marker_id, int &nRotations, std::string &additionalInfo)
virtual ~DictionaryBased()