EstervQrCode 2.0.0
Library for qr code manipulation
Loading...
Searching...
No Matches
aruco_board.hpp
1// This file is part of OpenCV project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://opencv.org/license.html
4#ifndef OPENCV_OBJDETECT_ARUCO_BOARD_HPP
5#define OPENCV_OBJDETECT_ARUCO_BOARD_HPP
6
7#include <opencv2/core.hpp>
8
9namespace cv {
10namespace aruco {
13
14class Dictionary;
15
26public:
33 CV_WRAP Board(InputArrayOfArrays objPoints, const Dictionary& dictionary, InputArray ids);
34
38
50
55
59
78 CV_WRAP void matchImagePoints(InputArrayOfArrays detectedCorners, InputArray detectedIds,
79 OutputArray objPoints, OutputArray imgPoints) const;
80
91 CV_WRAP void generateImage(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1) const;
92
93 CV_DEPRECATED_EXTERNAL // avoid using in C++ code, will be moved to "protected" (need to fix bindings first)
95
96 struct Impl;
97protected:
98 Board(const Ptr<Impl>& impl);
100};
101
108public:
118 CV_WRAP GridBoard(const Size& size, float markerLength, float markerSeparation,
119 const Dictionary &dictionary, InputArray ids = noArray());
120
124
125 CV_DEPRECATED_EXTERNAL // avoid using in C++ code, will be moved to "protected" (need to fix bindings first)
127};
128
136public:
146 CV_WRAP CharucoBoard(const Size& size, float squareLength, float markerLength,
147 const Dictionary &dictionary, InputArray ids = noArray());
148
158 CV_WRAP void setLegacyPattern(bool legacyPattern);
160
164
168
172
176
188 CV_WRAP bool checkCharucoCornersCollinear(InputArray charucoIds) const;
189
190 CV_DEPRECATED_EXTERNAL // avoid using in C++ code, will be moved to "protected" (need to fix bindings first)
192};
193
195
196}
197}
198
199#endif
Template class for 3D points specified by its coordinates x, y and z.
Definition types.hpp:255
Template class for specifying the size of an image or rectangle.
Definition types.hpp:335
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition mat.hpp:296
Board of ArUco markers.
Definition aruco_board.hpp:25
Board(const Ptr< Impl > &impl)
CV_DEPRECATED_EXTERNAL Board()
CV_WRAP const std::vector< std::vector< Point3f > > & getObjPoints() const
return array of object points of all the marker corners in the board.
Ptr< Impl > impl
Definition aruco_board.hpp:99
CV_WRAP const Point3f & getRightBottomCorner() const
get coordinate of the bottom right corner of the board, is set when calling the function create()
CV_WRAP Board(InputArrayOfArrays objPoints, const Dictionary &dictionary, InputArray ids)
Common Board constructor.
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)
CV_WRAP void generateImage(Size outSize, OutputArray img, int marginSize=0, int borderBits=1) const
Draw a planar board.
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...
CV_WRAP const Dictionary & getDictionary() const
return the Dictionary of markers employed for this board
ChArUco board is a planar chessboard where the markers are placed inside the white squares of a chess...
Definition aruco_board.hpp:135
CV_WRAP void setLegacyPattern(bool legacyPattern)
set legacy chessboard pattern.
CV_WRAP Size getChessboardSize() const
CV_WRAP CharucoBoard(const Size &size, float squareLength, float markerLength, const Dictionary &dictionary, InputArray ids=noArray())
CharucoBoard constructor.
CV_WRAP float getSquareLength() const
CV_PROP std::vector< std::vector< int > > getNearestMarkerCorners() const
get CharucoBoard::nearestMarkerCorners, for each charuco corner, nearest marker corner id of each mar...
CV_DEPRECATED_EXTERNAL CharucoBoard()
CV_WRAP bool getLegacyPattern() const
CV_WRAP std::vector< Point3f > getChessboardCorners() const
get CharucoBoard::chessboardCorners
CV_WRAP float getMarkerLength() const
CV_WRAP bool checkCharucoCornersCollinear(InputArray charucoIds) const
check whether the ChArUco markers are collinear
CV_PROP std::vector< std::vector< int > > getNearestMarkerIdx() const
get CharucoBoard::nearestMarkerIdx, for each charuco corner, nearest marker index in ids array
Dictionary is a set of unique ArUco markers of the same size.
Definition aruco_dictionary.hpp:29
Planar board with grid arrangement of markers.
Definition aruco_board.hpp:107
CV_DEPRECATED_EXTERNAL GridBoard()
CV_WRAP Size getGridSize() const
CV_WRAP GridBoard(const Size &size, float markerLength, float markerSeparation, const Dictionary &dictionary, InputArray ids=noArray())
GridBoard constructor.
CV_WRAP float getMarkerLength() const
CV_WRAP float getMarkerSeparation() const
CV_EXPORTS InputOutputArray noArray()
InputArray InputArrayOfArrays
Definition mat.hpp:443
CvSize size
Definition core_c.h:112
#define CV_EXPORTS_W_SIMPLE
Definition cvdef.h:473
#define CV_DEPRECATED_EXTERNAL
Definition cvdef.h:458
#define CV_PROP
Definition cvdef.h:479
#define CV_WRAP
Definition cvdef.h:481
"black box" representation of the file storage associated with a file on disk.
Definition calib3d.hpp:441
Definition cvstd_wrapper.hpp:74