39 #ifndef __OPENCV_DICTIONARY_HPP__ 40 #define __OPENCV_DICTIONARY_HPP__ 42 #include <opencv2/core.hpp> 71 Dictionary(
const Mat &_bytesList = Mat(),
int _markerSize = 0,
int _maxcorr = 0);
81 Dictionary(
const Ptr<Dictionary> &_dictionary);
87 CV_WRAP_AS(create)
static Ptr<Dictionary> create(
int nMarkers,
int markerSize,
int randomSeed=0);
93 CV_WRAP_AS(create_from)
static Ptr<Dictionary> create(
int nMarkers,
int markerSize,
99 CV_WRAP
static Ptr<Dictionary>
get(
int dict);
105 bool identify(
const Mat &onlyBits,
int &idx,
int &rotation,
double maxCorrectionRate)
const;
111 int getDistanceToId(InputArray bits,
int id,
bool allRotations =
true)
const;
117 CV_WRAP
void drawMarker(
int id,
int sidePixels, OutputArray _img,
int borderBits = 1)
const;
123 CV_WRAP
static Mat getByteListFromBits(
const Mat &bits);
129 CV_WRAP
static Mat getBitsFromByteList(
const Mat &byteList,
int markerSize);
CV_EXPORTS_AS(calibrateCameraCharucoExtended) double calibrateCameraCharuco(InputArrayOfArrays charucoCorners
Calibrate a camera using Charuco corners.
6x6 bits, minimum hamming distance between any two codes = 11, 587 codes
CV_PROP_RW int maxCorrectionBits
CV_PROP_RW int markerSize
5x5 bits, minimum hamming distance between any two codes = 9, 35 codes
4x4 bits, minimum hamming distance between any two codes = 5, 30 codes
CV_EXPORTS Ptr< Dictionary > getPredefinedDictionary(PREDEFINED_DICTIONARY_NAME name)
Returns one of the predefined dictionaries defined in PREDEFINED_DICTIONARY_NAME. ...
PREDEFINED_DICTIONARY_NAME
Predefined markers dictionaries/sets Each dictionary indicates the number of bits and the number of m...
Ptr< Dictionary > generateCustomDictionary(int nMarkers, int markerSize, const Ptr< Dictionary > &baseDictionary, int randomSeed)
CV_EXPORTS_W void drawMarker(const Ptr< Dictionary > &dictionary, int id, int sidePixels, OutputArray img, int borderBits=1)
Draw a canonical marker image.
6x6 bits, minimum hamming distance between any two codes = 10, 2320 codes
int const Ptr< Dictionary > & baseDictionary
Dictionary/Set of markers. It contains the inner codification.