EstervQrCode 1.1.1
Library for qr code manipulation
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 
9 namespace cv {
10 namespace aruco {
13 
14 class Dictionary;
15 
26 public:
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)
94  Board();
95 
96  struct Impl;
97 protected:
98  Board(const Ptr<Impl>& impl);
100 };
101 
108 public:
118  CV_WRAP GridBoard(const Size& size, float markerLength, float markerSeparation,
119  const Dictionary &dictionary, InputArray ids = noArray());
120 
122  CV_WRAP float getMarkerLength() const;
124 
125  CV_DEPRECATED_EXTERNAL // avoid using in C++ code, will be moved to "protected" (need to fix bindings first)
127 };
128 
136 public:
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);
159  CV_WRAP bool getLegacyPattern() const;
160 
162  CV_WRAP float getSquareLength() const;
163  CV_WRAP float getMarkerLength() const;
164 
168 
172 
176 
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()
Ptr< Impl > impl
Definition: aruco_board.hpp:99
CV_WRAP const std::vector< std::vector< Point3f > > & getObjPoints() const
return array of object points of all the marker corners in the board.
CV_WRAP const Dictionary & getDictionary() const
return the Dictionary of markers employed for this board
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 Point3f & getRightBottomCorner() const
get coordinate of the bottom right corner of the board, is set when calling the function create()
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_PROP std::vector< std::vector< int > > getNearestMarkerCorners() const
get CharucoBoard::nearestMarkerCorners, for each charuco corner, nearest marker corner id of each mar...
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 > > getNearestMarkerIdx() const
get CharucoBoard::nearestMarkerIdx, for each charuco corner, nearest marker index in ids array
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
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
CV__DEBUG_NS_END typedef const _InputArray & InputArray
Definition: mat.hpp:442
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