OpenCV  4.5.4
Open Source Computer Vision
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cv::aruco::Board Class Reference

Board of markers. More...

#include <opencv2/aruco.hpp>

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

Public Member Functions

void setIds (InputArray ids)
 Set ids vector. More...
 

Static Public Member Functions

static Ptr< Boardcreate (InputArrayOfArrays objPoints, const Ptr< Dictionary > &dictionary, InputArray ids)
 Provide way to create Board by passing necessary data. Specially needed in Python. More...
 

Public Attributes

Ptr< Dictionarydictionary
 the dictionary of markers employed for this board More...
 
std::vector< int > ids
 
std::vector< std::vector< Point3f > > objPoints
 

Detailed Description

Board of markers.

A board is a set of markers in the 3D space with a common coordinate system. The common form of a board of marker is a planar (2D) board, however any 3D layout can be used. A Board object is composed by:

Member Function Documentation

◆ create()

static Ptr<Board> cv::aruco::Board::create ( InputArrayOfArrays  objPoints,
const Ptr< Dictionary > &  dictionary,
InputArray  ids 
)
static
Python:
cv.aruco.Board_create(objPoints, dictionary, ids) -> retval

Provide way to create Board by passing necessary data. Specially needed in Python.

Parameters
objPointsarray of object points of all the marker corners in the board
dictionarythe dictionary of markers employed for this board
idsvector of the identifiers of the markers in the board

◆ setIds()

void cv::aruco::Board::setIds ( InputArray  ids)
Python:
cv.aruco_Board.setIds(ids) -> None

Set ids vector.

Parameters
idsvector of the identifiers of the markers in the board (should be the same size as objPoints)

Recommended way to set ids vector, which will fail if the size of ids does not match size of objPoints.

Member Data Documentation

◆ dictionary

Ptr<Dictionary> cv::aruco::Board::dictionary

the dictionary of markers employed for this board

◆ ids

std::vector< int > cv::aruco::Board::ids

vector of the identifiers of the markers in the board (same size than objPoints) The identifiers refers to the board dictionary

◆ objPoints

std::vector< std::vector< Point3f > > cv::aruco::Board::objPoints

array of object points of all the marker corners in the board each marker include its 4 corners in CCW order. For M markers, the size is Mx4.


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