OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::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. [詳解]

#include <charuco.hpp>

cv::aruco::Boardを継承しています。

公開メンバ関数

CV_WRAP void draw (Size outSize, OutputArray img, int marginSize=0, int borderBits=1)
 Draw a ChArUco board [詳解]
 
CV_WRAP Size getChessboardSize () const
 
CV_WRAP float getSquareLength () const
 
CV_WRAP float getMarkerLength () const
 
- 基底クラス cv::aruco::Board に属する継承公開メンバ関数
CV_WRAP void setIds (InputArray ids)
 Set ids vector [詳解]
 

静的公開メンバ関数

static CV_WRAP Ptr< CharucoBoardcreate (int squaresX, int squaresY, float squareLength, float markerLength, const Ptr< Dictionary > &dictionary)
 Create a CharucoBoard object [詳解]
 
- 基底クラス cv::aruco::Board に属する継承静的公開メンバ関数
static CV_WRAP Ptr< Boardcreate (InputArrayOfArrays objPoints, const Ptr< Dictionary > &dictionary, InputArray ids)
 Provide way to create Board by passing necessary data. Specially needed in Python. [詳解]
 

公開変数類

CV_PROP std::vector< Point3fchessboardCorners
 
CV_PROP std::vector< std::vector< int > > nearestMarkerIdx
 
CV_PROP std::vector< std::vector< int > > nearestMarkerCorners
 
- 基底クラス cv::aruco::Board に属する継承公開変数類
CV_PROP std::vector< std::vector< Point3f > > objPoints
 
CV_PROP Ptr< Dictionarydictionary
 the dictionary of markers employed for this board
 
CV_PROP_RW std::vector< int > ids
 

詳解

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.

関数詳解

◆ create()

static CV_WRAP Ptr< CharucoBoard > cv::aruco::CharucoBoard::create ( int  squaresX,
int  squaresY,
float  squareLength,
float  markerLength,
const Ptr< Dictionary > &  dictionary 
)
static

Create a CharucoBoard object

引数
squaresXnumber of chessboard squares in X direction
squaresYnumber of chessboard squares in Y direction
squareLengthchessboard square side length (normally in meters)
markerLengthmarker side length (same unit than squareLength)
dictionarydictionary of markers indicating the type of markers. The first markers in the dictionary are used to fill the white chessboard squares.
戻り値
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.

◆ draw()

CV_WRAP void cv::aruco::CharucoBoard::draw ( Size  outSize,
OutputArray  img,
int  marginSize = 0,
int  borderBits = 1 
)

Draw a ChArUco board

引数
outSizesize of the output image in pixels.
imgoutput image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.
marginSizeminimum margins (in pixels) of the board in the output image
borderBitswidth of the marker borders.

This function return the image of the ChArUco board, ready to be printed.


このクラス詳解は次のファイルから抽出されました: