@Namespace(value="cv::aruco") @NoOffset @Properties(inherit=opencv_aruco.class) public class Dictionary extends Pointer
/**
\brief Dictionary/Set of markers. It contains the inner codification
bytesList contains the marker codewords where
- bytesList.rows is the dictionary size
- each marker is encoded using 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.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Dictionary() |
Dictionary(Dictionary _dictionary) |
Dictionary(long size)
Native array allocator.
|
Dictionary(Mat _bytesList,
int _markerSize,
int _maxcorr) |
Dictionary(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Mat |
bytesList() |
Dictionary |
bytesList(Mat setter) |
static Dictionary |
create_from(int nMarkers,
int markerSize,
Dictionary baseDictionary) |
static Dictionary |
create_from(int nMarkers,
int markerSize,
Dictionary baseDictionary,
int randomSeed) |
static Dictionary |
create(int nMarkers,
int markerSize) |
static Dictionary |
create(int nMarkers,
int markerSize,
int randomSeed) |
void |
drawMarker(int id,
int sidePixels,
GpuMat _img) |
void |
drawMarker(int id,
int sidePixels,
GpuMat _img,
int borderBits) |
void |
drawMarker(int id,
int sidePixels,
Mat _img) |
void |
drawMarker(int id,
int sidePixels,
Mat _img,
int borderBits)
\brief Draw a canonical marker image
|
void |
drawMarker(int id,
int sidePixels,
UMat _img) |
void |
drawMarker(int id,
int sidePixels,
UMat _img,
int borderBits) |
static Dictionary |
get(int dict) |
static Mat |
getBitsFromByteList(Mat byteList,
int markerSize)
\brief Transform list of bytes to matrix of bits
|
static Mat |
getByteListFromBits(Mat bits)
\brief Transform matrix of bits to list of bytes in the 4 rotations
|
int |
getDistanceToId(GpuMat bits,
int id) |
int |
getDistanceToId(GpuMat bits,
int id,
boolean allRotations) |
int |
getDistanceToId(Mat bits,
int id) |
int |
getDistanceToId(Mat bits,
int id,
boolean allRotations)
\brief Returns the distance of the input bits to the specific id.
|
int |
getDistanceToId(UMat bits,
int id) |
int |
getDistanceToId(UMat bits,
int id,
boolean allRotations) |
boolean |
identify(Mat onlyBits,
int[] idx,
int[] rotation,
double maxCorrectionRate) |
boolean |
identify(Mat onlyBits,
IntBuffer idx,
IntBuffer rotation,
double maxCorrectionRate) |
boolean |
identify(Mat onlyBits,
IntPointer idx,
IntPointer rotation,
double maxCorrectionRate)
\brief Given a matrix of bits.
|
int |
markerSize() |
Dictionary |
markerSize(int setter) |
int |
maxCorrectionBits() |
Dictionary |
maxCorrectionBits(int setter) |
Dictionary |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Dictionary(Pointer p)
Pointer.Pointer(Pointer)
.public Dictionary(long size)
Pointer.position(long)
.public Dictionary(@Const @ByRef(nullValue="cv::Mat()") Mat _bytesList, int _markerSize, int _maxcorr)
public Dictionary()
public Dictionary(@opencv_core.Ptr Dictionary _dictionary)
public Dictionary position(long position)
public Dictionary bytesList(Mat setter)
public int markerSize()
public Dictionary markerSize(int setter)
public int maxCorrectionBits()
public Dictionary maxCorrectionBits(int setter)
@opencv_core.Ptr public static Dictionary create(int nMarkers, int markerSize, int randomSeed)
generateCustomDictionary
@opencv_core.Ptr public static Dictionary create(int nMarkers, int markerSize)
@opencv_core.Ptr @Name(value="create") public static Dictionary create_from(int nMarkers, int markerSize, @opencv_core.Ptr Dictionary baseDictionary, int randomSeed)
generateCustomDictionary
@opencv_core.Ptr @Name(value="create") public static Dictionary create_from(int nMarkers, int markerSize, @opencv_core.Ptr Dictionary baseDictionary)
@opencv_core.Ptr public static Dictionary get(int dict)
getPredefinedDictionary
@Cast(value="bool") public boolean identify(@Const @ByRef Mat onlyBits, @ByRef IntPointer idx, @ByRef IntPointer rotation, double maxCorrectionRate)
@Cast(value="bool") public boolean identify(@Const @ByRef Mat onlyBits, @ByRef IntBuffer idx, @ByRef IntBuffer rotation, double maxCorrectionRate)
@Cast(value="bool") public boolean identify(@Const @ByRef Mat onlyBits, @ByRef int[] idx, @ByRef int[] rotation, double maxCorrectionRate)
public int getDistanceToId(@ByVal Mat bits, int id, @Cast(value="bool") boolean allRotations)
public int getDistanceToId(@ByVal UMat bits, int id, @Cast(value="bool") boolean allRotations)
public int getDistanceToId(@ByVal GpuMat bits, int id, @Cast(value="bool") boolean allRotations)
public void drawMarker(int id, int sidePixels, @ByVal Mat _img, int borderBits)
@ByVal public static Mat getByteListFromBits(@Const @ByRef Mat bits)
Copyright © 2020. All rights reserved.