OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | List of all members
cv::aruco::GridBoard Class Reference

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

#include "aruco.hpp"

Inheritance diagram for cv::aruco::GridBoard:
cv::aruco::Board

Public Member Functions

void draw (Size outSize, OutputArray img, int marginSize=0, int borderBits=1)
 Draw a GridBoard. More...
 
Size getGridSize () const
 
float getMarkerLength () const
 
float getMarkerSeparation () const
 

Static Public Member Functions

static GridBoard create (int markersX, int markersY, float markerLength, float markerSeparation, Dictionary dictionary)
 Create a GridBoard object. More...
 

Additional Inherited Members

- Public Attributes inherited from cv::aruco::Board
Dictionary dictionary
 
std::vector< int > ids
 
std::vector< std::vector< Point3f > > objPoints
 

Detailed Description

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

See also
drawPlanarBoard)

Member Function Documentation

static GridBoard cv::aruco::GridBoard::create ( int  markersX,
int  markersY,
float  markerLength,
float  markerSeparation,
Dictionary  dictionary 
)
static

Create a GridBoard object.

Parameters
markersXnumber of markers in X direction
markersYnumber of markers in Y direction
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit than markerLenght)
dictionarydictionary of markers indicating the type of markers. The first markersX*markersY markers in the dictionary are used.
Returns
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.

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

Draw a GridBoard.

Parameters
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.

Size cv::aruco::GridBoard::getGridSize ( ) const
inline
float cv::aruco::GridBoard::getMarkerLength ( ) const
inline
float cv::aruco::GridBoard::getMarkerSeparation ( ) const
inline

The documentation for this class was generated from the following file: