@Namespace(value="cv::aruco") @NoOffset public static class opencv_aruco.CharucoBoard extends opencv_aruco.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.
| Constructor and Description |
|---|
CharucoBoard()
Default native constructor.
|
CharucoBoard(long size)
Native array allocator.
|
CharucoBoard(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
create, create, create, create, create, create, create, create, create, dictionary, dictionary, ids, ids, objPoints, objPointsaddress, 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 CharucoBoard()
public CharucoBoard(long size)
Pointer.position(long).public CharucoBoard(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public opencv_aruco.CharucoBoard position(long position)
position in class opencv_aruco.Board@ByRef @Cast(value="std::vector<cv::Point3f>*") public opencv_core.Point3fVector chessboardCorners()
public opencv_aruco.CharucoBoard chessboardCorners(opencv_core.Point3fVector chessboardCorners)
@ByRef public opencv_core.IntVectorVector nearestMarkerIdx()
public opencv_aruco.CharucoBoard nearestMarkerIdx(opencv_core.IntVectorVector nearestMarkerIdx)
@ByRef public opencv_core.IntVectorVector nearestMarkerCorners()
public opencv_aruco.CharucoBoard nearestMarkerCorners(opencv_core.IntVectorVector nearestMarkerCorners)
public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.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.public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.Mat img)
public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.UMat img,
int marginSize,
int borderBits)
public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.UMat img)
public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.GpuMat img,
int marginSize,
int borderBits)
public void draw(@ByVal
opencv_core.Size outSize,
@ByVal
opencv_core.GpuMat img)
@opencv_core.Ptr public static opencv_aruco.CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, @opencv_core.Ptr opencv_aruco.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.@ByVal public opencv_core.Size getChessboardSize()
public float getSquareLength()
public float getMarkerLength()
Copyright © 2018. All rights reserved.