@Namespace(value="cv::aruco") @NoOffset @Properties(inherit=opencv_objdetect.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(long size)
Native array allocator.
|
Dictionary(Mat bytesList,
int _markerSize) |
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) |
void |
generateImageMarker(int id,
int sidePixels,
GpuMat _img) |
void |
generateImageMarker(int id,
int sidePixels,
GpuMat _img,
int borderBits) |
void |
generateImageMarker(int id,
int sidePixels,
Mat _img) |
void |
generateImageMarker(int id,
int sidePixels,
Mat _img,
int borderBits)
\brief Generate a canonical marker image
|
void |
generateImageMarker(int id,
int sidePixels,
UMat _img) |
void |
generateImageMarker(int id,
int sidePixels,
UMat _img,
int borderBits) |
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) |
Dictionary |
getPointer(long i) |
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) |
boolean |
readDictionary(FileNode fn)
\brief Read a new dictionary from FileNode.
|
void |
writeDictionary(FileStorage fs) |
void |
writeDictionary(FileStorage fs,
BytePointer name)
\brief Write a dictionary to FileStorage, format is the same as in readDictionary().
|
void |
writeDictionary(FileStorage fs,
String name) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Dictionary(Pointer p)
Pointer(Pointer).public Dictionary(long size)
Pointer.position(long).public Dictionary()
public Dictionary position(long position)
public Dictionary getPointer(long i)
getPointer in class Pointerpublic Dictionary bytesList(Mat setter)
public int markerSize()
public Dictionary markerSize(int setter)
public int maxCorrectionBits()
public Dictionary maxCorrectionBits(int setter)
@Cast(value="bool") public boolean readDictionary(@Const @ByRef FileNode fn)
public void writeDictionary(@ByRef FileStorage fs, @opencv_core.Str BytePointer name)
public void writeDictionary(@ByRef FileStorage fs)
public void writeDictionary(@ByRef FileStorage fs, @opencv_core.Str String name)
@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 generateImageMarker(int id,
int sidePixels,
@ByVal
Mat _img,
int borderBits)
public void generateImageMarker(int id,
int sidePixels,
@ByVal
UMat _img,
int borderBits)
public void generateImageMarker(int id,
int sidePixels,
@ByVal
GpuMat _img,
int borderBits)
@ByVal public static Mat getByteListFromBits(@Const @ByRef Mat bits)
Copyright © 2023. All rights reserved.