cv.estimatePoseBoard - MATLAB File Help |
Pose estimation for a board of markers
[rvec, tvec, num] = cv.estimatePoseBoard(corners, ids, board, cameraMatrix, distCoeffs)
[rvec, tvec, num] = cv.estimatePoseBoard(..., 'OptionName',optionValue, ...)
{{[x,y],..}, ..}
). The order
of the corners should be clockwise.corners
(0-based).{Type, ...}
. There are
three types of boards available:
{'Board', objPoints, dictionary, ids}
.
Creates a board of markers.{'GridBoard', markersX, markersY, markerLength, markerSeparation, dictionary, 'FirstMarker',firstMarker}
.
Creates a a GridBoard object given the number of markers in each
direction and the marker size and marker separation.{'GridBoard', squaresX, squaresY, squareLength, markerLength, dictionary}
.
Creates a CharucoBoard object given the number of squares in each
direction and the size of the markers and chessboard squares.A = [fx 0 cx; 0 fy cy; 0 0 1]
.[k1,k2,p1,p2,k3,k4,k5,k6,s1,s2,s3,s4]
of 4, 5, 8 or 12 elements.[x,y,z]
corresponding to the rotation vector of
the board.[x,y,z]
corresponding to the translation vector
of the board.rvec
and tvec
. Used as initial guess if not
empty. The function uses the provided values as initial approximations of
the rotation and translation vectors, respectively, and further optimizes
them. Not set by default.rvec
and tvec
will be used or not. default false.{{[x1,y1,z1],[x2,y2,z2],[x3,y3,z3],[x4,y4,z4]}, ..}
. Usually object
points are planar with Z=0.objPoints
). The identifiers refers to the board dictionary (0-based).markerLength
).squareLength
)The cv.estimatePoseBoard function receives the detected markers and returns the pose of a marker board composed by those markers. A board of marker has a single world coordinate system which is defined by the board layout. The returned transformation is the one that transforms points from the board coordinate system to the camera coordinate system. Input markers that are not included in the board layout are ignored.
A board is a set of markers in the 3D space with a common cordinate system. The common form of a board of marker is a planar (2D) board, however any 3D layout can be used.
A GridBoard is a special case of planar boards with grid arrangement of markers. It is the most common type of board. All markers are placed in the same plane in a grid arrangment.
Specific class for ChArUco boards. A ChArUco board is a planar board where the markers are placed inside the white squares of a chessboard. The benefits of ChArUco boards is that they provide both, ArUco markers versatility and chessboard corner precision, which is important for calibration and pose estimation.