OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
cv::aruco::GridBoard クラス

Planar board with grid arrangement of markers More common type of board. All markers are placed in the same plane in a grid arrangement. The board can be drawn using drawPlanarBoard() function ( [詳解]

#include <aruco.hpp>

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

公開メンバ関数

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

静的公開メンバ関数

static CV_WRAP Ptr< GridBoardcreate (int markersX, int markersY, float markerLength, float markerSeparation, const Ptr< Dictionary > &dictionary, int firstMarker=0)
 Create a GridBoard 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::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
 

詳解

Planar board with grid arrangement of markers More common type of board. All markers are placed in the same plane in a grid arrangement. The board can be drawn using drawPlanarBoard() function (

参照
drawPlanarBoard)

関数詳解

◆ create()

static CV_WRAP Ptr< GridBoard > cv::aruco::GridBoard::create ( int  markersX,
int  markersY,
float  markerLength,
float  markerSeparation,
const Ptr< Dictionary > &  dictionary,
int  firstMarker = 0 
)
static

Create a GridBoard object

引数
markersXnumber of markers in X direction
markersYnumber of markers in Y direction
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
firstMarkerid of first marker in dictionary to use on board.
戻り値
the output GridBoard object

This functions creates a GridBoard object given the number of markers in each direction and the marker size and marker separation.

◆ draw()

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

Draw a GridBoard

引数
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 GridBoard, ready to be printed.


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