OpenCV453
|
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_WRAP void | setIds (InputArray ids) |
Set ids vector [詳解] | |
静的公開メンバ関数 | |
static CV_WRAP Ptr< GridBoard > | create (int markersX, int markersY, float markerLength, float markerSeparation, const Ptr< Dictionary > &dictionary, int firstMarker=0) |
Create a GridBoard object [詳解] | |
![]() | |
static CV_WRAP Ptr< Board > | create (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< std::vector< Point3f > > | objPoints |
CV_PROP Ptr< Dictionary > | dictionary |
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 (
|
static |
Create a GridBoard object
markersX | number of markers in X direction |
markersY | number of markers in Y direction |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
firstMarker | id of first marker in dictionary to use on board. |
This functions creates a GridBoard object given the number of markers in each direction and the marker size and marker separation.
CV_WRAP void cv::aruco::GridBoard::draw | ( | Size | outSize, |
OutputArray | img, | ||
int | marginSize = 0 , |
||
int | borderBits = 1 |
||
) |
Draw a GridBoard
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 GridBoard, ready to be printed.