Package org.opencv.aruco
Class CharucoBoard
java.lang.Object
org.opencv.aruco.Board
org.opencv.aruco.CharucoBoard
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharucoBoard
__fromPtr__
(long addr) static CharucoBoard
create
(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary) Create a CharucoBoard objectvoid
Draw a ChArUco boardvoid
Draw a ChArUco boardvoid
Draw a ChArUco boardprotected void
finalize()
float
float
Methods inherited from class org.opencv.aruco.Board
create, get_dictionary, get_ids, get_objPoints, get_rightBottomBorder, getNativeObjAddr, set_ids, setIds
-
Constructor Details
-
CharucoBoard
protected CharucoBoard(long addr)
-
-
Method Details
-
__fromPtr__
-
draw
Draw a ChArUco board- Parameters:
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.
-
draw
Draw a ChArUco board- Parameters:
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 image This function return the image of the ChArUco board, ready to be printed.
-
draw
Draw a ChArUco board- Parameters:
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. This function return the image of the ChArUco board, ready to be printed.
-
create
public static CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary) Create a CharucoBoard object- Parameters:
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.- Returns:
- the output CharucoBoard object This functions creates a CharucoBoard object given the number of squares in each direction and the size of the markers and chessboard squares.
-
getChessboardSize
-
getSquareLength
public float getSquareLength() -
getMarkerLength
public float getMarkerLength() -
get_chessboardCorners
-
finalize
-