@Namespace(value="cv::aruco") @NoOffset @Properties(inherit=opencv_aruco.class) public class CharucoBoard extends Board
/** \brief ChArUco board Specific class for ChArUco boards. A ChArUco board is a planar board where the markers are placed inside the white squares of a chessboard. The benefits of ChArUco boards is that they provide both, ArUco markers versatility and chessboard corner precision, which is important for calibration and pose estimation. This class also allows the easy creation and drawing of ChArUco boards.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CharucoBoard()
Default native constructor.
|
CharucoBoard(long size)
Native array allocator.
|
CharucoBoard(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Point3fVector |
chessboardCorners() |
CharucoBoard |
chessboardCorners(Point3fVector setter) |
static CharucoBoard |
create(int squaresX,
int squaresY,
float squareLength,
float markerLength,
Dictionary dictionary)
\brief Create a CharucoBoard object
|
void |
draw(Size outSize,
GpuMat img) |
void |
draw(Size outSize,
GpuMat img,
int marginSize,
int borderBits) |
void |
draw(Size outSize,
Mat img) |
void |
draw(Size outSize,
Mat img,
int marginSize,
int borderBits)
\brief Draw a ChArUco board
|
void |
draw(Size outSize,
UMat img) |
void |
draw(Size outSize,
UMat img,
int marginSize,
int borderBits) |
Size |
getChessboardSize() |
float |
getMarkerLength() |
float |
getSquareLength() |
IntVectorVector |
nearestMarkerCorners() |
CharucoBoard |
nearestMarkerCorners(IntVectorVector setter) |
IntVectorVector |
nearestMarkerIdx() |
CharucoBoard |
nearestMarkerIdx(IntVectorVector setter) |
CharucoBoard |
position(long position) |
create, create, create, create, create, create, create, create, create, dictionary, dictionary, ids, ids, objPoints, objPoints
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 CharucoBoard()
public CharucoBoard(long size)
Pointer.position(long)
.public CharucoBoard(Pointer p)
Pointer.Pointer(Pointer)
.public CharucoBoard position(long position)
@ByRef @Cast(value="std::vector<cv::Point3f>*") public Point3fVector chessboardCorners()
public CharucoBoard chessboardCorners(Point3fVector setter)
@ByRef public IntVectorVector nearestMarkerIdx()
public CharucoBoard nearestMarkerIdx(IntVectorVector setter)
@ByRef public IntVectorVector nearestMarkerCorners()
public CharucoBoard nearestMarkerCorners(IntVectorVector setter)
public void draw(@ByVal Size outSize, @ByVal Mat img, int marginSize, int borderBits)
outSize
- size of the output image in pixels.img
- output image with the board. The size of this image will be outSize
and the board will be on the center, keeping the board proportions.marginSize
- minimum margins (in pixels) of the board in the output imageborderBits
- width of the marker borders.
This function return the image of the ChArUco board, ready to be printed.@opencv_core.Ptr public static CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, @opencv_core.Ptr Dictionary dictionary)
squaresX
- number of chessboard squares in X directionsquaresY
- number of chessboard squares in Y directionsquareLength
- chessboard square side length (normally in meters)markerLength
- marker side length (same unit than squareLength)dictionary
- dictionary of markers indicating the type of markers.
The first markers in the dictionary are used to fill the white chessboard squares.public float getSquareLength()
public float getMarkerLength()
Copyright © 2020. All rights reserved.