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.
More...
#include <charuco.hpp>
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.
Definition at line 62 of file charuco.hpp.
◆ _getNearestMarkerCorners()
| void cv::aruco::CharucoBoard::_getNearestMarkerCorners |
( |
| ) |
|
|
private |
Fill nearestMarkerIdx and nearestMarkerCorners arrays
Definition at line 179 of file charuco.cpp.
◆ create()
| Ptr< CharucoBoard > cv::aruco::CharucoBoard::create |
( |
int |
squaresX, |
|
|
int |
squaresY, |
|
|
float |
squareLength, |
|
|
float |
markerLength, |
|
|
const Ptr< Dictionary > & |
dictionary |
|
) |
| |
|
static |
Create a CharucoBoard object.
- Parameters
-
| squaresX | number of chessboard squares in X direction |
| squaresY | number of chessboard squares in Y direction |
| squareLength | 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.
Definition at line 124 of file charuco.cpp.
◆ draw()
| void cv::aruco::CharucoBoard::draw |
( |
Size |
outSize, |
|
|
OutputArray |
img, |
|
|
int |
marginSize = 0, |
|
|
int |
borderBits = 1 |
|
) |
| |
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 |
| borderBits | width of the marker borders. |
This function return the image of the ChArUco board, ready to be printed.
Definition at line 54 of file charuco.cpp.
◆ getChessboardSize()
| CV_WRAP Size cv::aruco::CharucoBoard::getChessboardSize |
( |
| ) |
const |
|
inline |
◆ getMarkerLength()
| CV_WRAP float cv::aruco::CharucoBoard::getMarkerLength |
( |
| ) |
const |
|
inline |
◆ getSquareLength()
| CV_WRAP float cv::aruco::CharucoBoard::getSquareLength |
( |
| ) |
const |
|
inline |
◆ _markerLength
| float cv::aruco::CharucoBoard::_markerLength |
|
private |
◆ _squareLength
| float cv::aruco::CharucoBoard::_squareLength |
|
private |
◆ _squaresX
| int cv::aruco::CharucoBoard::_squaresX |
|
private |
◆ _squaresY
| int cv::aruco::CharucoBoard::_squaresY |
|
private |
◆ chessboardCorners
| CV_PROP std::vector< Point3f > cv::aruco::CharucoBoard::chessboardCorners |
◆ nearestMarkerCorners
| CV_PROP std::vector< std::vector< int > > cv::aruco::CharucoBoard::nearestMarkerCorners |
◆ nearestMarkerIdx
| CV_PROP std::vector< std::vector< int > > cv::aruco::CharucoBoard::nearestMarkerIdx |
The documentation for this class was generated from the following files: