cv.detectCharucoDiamond - MATLAB File Help |
Detect ChArUco Diamond markers
[diamondCorners, diamondIds] = cv.detectCharucoDiamond(img, markerCorners, markerIds, squareMarkerLengthRate)
[...] = cv.detectCharucoDiamond(..., 'OptionName',optionValue, ...)
{{[x,y],..}, ..}
.markerCorners
(0-based).squareMarkerLengthRate = squareLength/markerLength
. The real units are
not necessary.{{[x y],..}, ..}
).diamondCorners
(0-based). The id
of each diamond is in fact a vector of four integers, so each diamond has
4 ids, which are the ids of the aruco markers composing the diamond.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.This function detects Diamond markers from the previous detected ArUco
markers. The diamonds are returned in the diamondCorners
and diamondIds
parameters. If camera calibration parameters are provided, the diamond
search is based on reprojection. If not, diamond search is based on
homography. Homography is faster than reprojection but can slightly reduce
the detection rate.