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