具有网格排列标记的平面棋盘。 更多…
#include <opencv2/objdetect/aruco_board.hpp>
|
| | GridBoard () |
| |
| | GridBoard (const Size &size, float markerLength, float markerSeparation, const Dictionary &dictionary, InputArray ids=noArray()) |
| | GridBoard 构造函数。
|
| |
| Size | getGridSize () const |
| |
| float | getMarkerLength () const |
| |
| float | getMarkerSeparation () const |
| |
| | Board () |
| |
| | Board (InputArrayOfArrays objPoints, const Dictionary &dictionary, InputArray ids) |
| | 常用的 Board 构造函数。
|
| |
| void | generateImage (Size outSize, OutputArray img, int marginSize=0, int borderBits=1) const |
| | 绘制平面棋盘。
|
| |
| const Dictionary & | getDictionary () const |
| | 返回此棋盘使用的标记字典
|
| |
| const std::vector< int > & | getIds () const |
| | 棋盘中标记标识符的向量(应与 objPoints 大小相同)
|
| |
| const std::vector< std::vector< Point3f > > & | getObjPoints () const |
| | 返回棋盘中所有标记角点的对象点数组。
|
| |
| const Point3f & | getRightBottomCorner () const |
| | 获取棋盘右下角的坐标,在调用 create() 函数时设置
|
| |
| void | matchImagePoints (InputArrayOfArrays detectedCorners, InputArray detectedIds, OutputArray objPoints, OutputArray imgPoints) const |
| | 给定棋盘配置和一组检测到的标记,返回相应的图像点和对象点,可用于 solvePnP()
|
| |
具有网格排列标记的平面棋盘。
更常见的棋盘类型。所有标记都以网格排列的方式放置在同一平面上。可以使用 generateImage() 方法绘制棋盘图像。
◆ GridBoard() [1/2]
| cv::aruco::GridBoard::GridBoard |
( |
const Size & | size, |
|
|
float | markerLength, |
|
|
float | markerSeparation, |
|
|
const Dictionary & | dictionary, |
|
|
InputArray | ids = noArray() ) |
| Python |
|---|
| cv.aruco.GridBoard( | size, markerLength, markerSeparation, dictionary[, ids] | ) -> | <aruco_GridBoard 对象> |
GridBoard 构造函数。
- 参数
-
| size | x 和 y 方向上的标记数量 |
| markerLength | 标记边长(通常以米为单位) |
| markerSeparation | 两个标记之间的间距(与 markerLength 使用相同的单位) |
| dictionary | 指示标记类型的标记字典 |
| ids | 要在棋盘上使用的字典中的一组标记 ID。 |
◆ GridBoard() [2/2]
| cv::aruco::GridBoard::GridBoard |
( |
| ) |
|
| Python |
|---|
| cv.aruco.GridBoard( | size, markerLength, markerSeparation, dictionary[, ids] | ) -> | <aruco_GridBoard 对象> |
◆ getGridSize()
| Size cv::aruco::GridBoard::getGridSize |
( |
| ) |
const |
| Python |
|---|
| cv.aruco.GridBoard.getGridSize( | | ) -> | retval |
◆ getMarkerLength()
| float cv::aruco::GridBoard::getMarkerLength |
( |
| ) |
const |
| Python |
|---|
| cv.aruco.GridBoard.getMarkerLength( | | ) -> | retval |
◆ getMarkerSeparation()
| float cv::aruco::GridBoard::getMarkerSeparation |
( |
| ) |
const |
| Python |
|---|
| cv.aruco.GridBoard.getMarkerSeparation( | | ) -> | retval |
此类的文档是从以下文件生成的