public class Dictionary extends Object
nbytes = ceil(markerSize*markerSize/8.)
- each row contains all 4 rotations of the marker, so its length is 4*nbytes
bytesList.ptr(i)[k*nbytes + j]
is then the j-th byte of i-th marker, in its k-th rotation.Modifier and Type | Field and Description |
---|---|
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
protected |
Dictionary(long addr) |
Modifier and Type | Method and Description |
---|---|
static Dictionary |
__fromPtr__(long addr) |
static Dictionary |
create_from(int nMarkers,
int markerSize,
Dictionary baseDictionary)
SEE: generateCustomDictionary
|
static Dictionary |
create_from(int nMarkers,
int markerSize,
Dictionary baseDictionary,
int randomSeed)
SEE: generateCustomDictionary
|
static Dictionary |
create(int nMarkers,
int markerSize)
SEE: generateCustomDictionary
|
static Dictionary |
create(int nMarkers,
int markerSize,
int randomSeed)
SEE: generateCustomDictionary
|
void |
drawMarker(int id,
int sidePixels,
Mat _img)
Draw a canonical marker image
|
void |
drawMarker(int id,
int sidePixels,
Mat _img,
int borderBits)
Draw a canonical marker image
|
protected void |
finalize() |
Mat |
get_bytesList() |
int |
get_markerSize() |
int |
get_maxCorrectionBits() |
static Dictionary |
get(int dict)
SEE: getPredefinedDictionary
|
static Mat |
getBitsFromByteList(Mat byteList,
int markerSize)
Transform list of bytes to matrix of bits
|
static Mat |
getByteListFromBits(Mat bits)
Transform matrix of bits to list of bytes in the 4 rotations
|
long |
getNativeObjAddr() |
void |
set_bytesList(Mat bytesList) |
void |
set_markerSize(int markerSize) |
void |
set_maxCorrectionBits(int maxCorrectionBits) |
public long getNativeObjAddr()
public static Dictionary __fromPtr__(long addr)
public static Mat getBitsFromByteList(Mat byteList, int markerSize)
byteList
- automatically generatedmarkerSize
- automatically generatedpublic static Mat getByteListFromBits(Mat bits)
bits
- automatically generatedpublic static Dictionary create_from(int nMarkers, int markerSize, Dictionary baseDictionary, int randomSeed)
nMarkers
- automatically generatedmarkerSize
- automatically generatedbaseDictionary
- automatically generatedrandomSeed
- automatically generatedpublic static Dictionary create_from(int nMarkers, int markerSize, Dictionary baseDictionary)
nMarkers
- automatically generatedmarkerSize
- automatically generatedbaseDictionary
- automatically generatedpublic static Dictionary create(int nMarkers, int markerSize, int randomSeed)
nMarkers
- automatically generatedmarkerSize
- automatically generatedrandomSeed
- automatically generatedpublic static Dictionary create(int nMarkers, int markerSize)
nMarkers
- automatically generatedmarkerSize
- automatically generatedpublic static Dictionary get(int dict)
dict
- automatically generatedpublic void drawMarker(int id, int sidePixels, Mat _img, int borderBits)
id
- automatically generatedsidePixels
- automatically generated_img
- automatically generatedborderBits
- automatically generatedpublic void drawMarker(int id, int sidePixels, Mat _img)
id
- automatically generatedsidePixels
- automatically generated_img
- automatically generatedpublic Mat get_bytesList()
public void set_bytesList(Mat bytesList)
public int get_markerSize()
public void set_markerSize(int markerSize)
public int get_maxCorrectionBits()
public void set_maxCorrectionBits(int maxCorrectionBits)
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2