Board of ArUco markers. More...
#include <aruco_board.hpp>
Public Member Functions | |
CV_WRAP | Board (InputArrayOfArrays objPoints, const Dictionary &dictionary, InputArray ids) |
Common Board constructor. More... | |
CV_WRAP const Dictionary & | getDictionary () const |
return the Dictionary of markers employed for this board More... | |
CV_WRAP const std::vector< std::vector< Point3f > > & | getObjPoints () const |
return array of object points of all the marker corners in the board. More... | |
CV_WRAP const std::vector< int > & | getIds () const |
vector of the identifiers of the markers in the board (should be the same size as objPoints) More... | |
CV_WRAP const Point3f & | getRightBottomCorner () const |
get coordinate of the bottom right corner of the board, is set when calling the function create() More... | |
CV_WRAP void | matchImagePoints (InputArrayOfArrays detectedCorners, InputArray detectedIds, OutputArray objPoints, OutputArray imgPoints) const |
Given a board configuration and a set of detected markers, returns the corresponding image points and object points, can be used in solvePnP() More... | |
CV_WRAP void | generateImage (Size outSize, OutputArray img, int marginSize=0, int borderBits=1) const |
Draw a planar board. More... | |
CV_DEPRECATED_EXTERNAL | Board () |
Protected Member Functions | |
Board (const Ptr< Impl > &impl) | |
Protected Attributes | |
Ptr< Impl > | impl |
Board of ArUco 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:
CV_WRAP cv::aruco::Board::Board | ( | InputArrayOfArrays | objPoints, |
const Dictionary & | dictionary, | ||
InputArray | ids | ||
) |
Common Board constructor.
objPoints | array of object points of all the marker corners in the board |
dictionary | the dictionary of markers employed for this board |
ids | vector of the identifiers of the markers in the board |
CV_DEPRECATED_EXTERNAL cv::aruco::Board::Board | ( | ) |
|
protected |
CV_WRAP void cv::aruco::Board::generateImage | ( | Size | outSize, |
OutputArray | img, | ||
int | marginSize = 0 , |
||
int | borderBits = 1 |
||
) | const |
Draw a planar board.
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 board, ready to be printed.
CV_WRAP const Dictionary& cv::aruco::Board::getDictionary | ( | ) | const |
return the Dictionary of markers employed for this board
CV_WRAP const std::vector<int>& cv::aruco::Board::getIds | ( | ) | const |
vector of the identifiers of the markers in the board (should be the same size as objPoints)
CV_WRAP const std::vector<std::vector<Point3f> >& cv::aruco::Board::getObjPoints | ( | ) | const |
return array of object points of all the marker corners in the board.
Each marker include its 4 corners in this order:
Markers are placed in a certain order - row by row, left to right in every row. For M markers, the size is Mx4.
get coordinate of the bottom right corner of the board, is set when calling the function create()
CV_WRAP void cv::aruco::Board::matchImagePoints | ( | InputArrayOfArrays | detectedCorners, |
InputArray | detectedIds, | ||
OutputArray | objPoints, | ||
OutputArray | imgPoints | ||
) | const |
Given a board configuration and a set of detected markers, returns the corresponding image points and object points, can be used in solvePnP()
detectedCorners | List of detected marker corners of the board. For cv::Board and cv::GridBoard the method expects std::vector<std::vector<Point2f>> or std::vector<Mat> with Aruco marker corners. For cv::CharucoBoard the method expects std::vector<Point2f> or Mat with ChAruco corners (chess board corners matched with Aruco markers). |
detectedIds | List of identifiers for each marker or charuco corner. For any Board class the method expects std::vector<int> or Mat. |
objPoints | Vector of marker points in the board coordinate space. For any Board class the method expects std::vector<cv::Point3f> objectPoints or cv::Mat |
imgPoints | Vector of marker points in the image coordinate space. For any Board class the method expects std::vector<cv::Point2f> objectPoints or cv::Mat |
|
protected |