Draw a ChArUco Diamond marker
img = cv.drawCharucoDiamond(dictionary, ids, squareLength, markerLength)
img = cv.drawCharucoDiamond(..., 'OptionName',optionValue, ...)
Input
- dictionary dictionary of markers indicating the type of markers.
- ids vector of 4 ids for each ArUco marker in the ChArUco marker.
- squareLength size of the chessboard squares in pixels.
- markerLength size of the markers in pixels.
Output
- img output image with the marker. The size of this image will be
3*squareLength + 2*marginSize
.
Options
- MarginSize minimum margins (in pixels) of the marker in the output
image. default 0
- BorderBits width of the marker borders. default 1
This function return the image of a ChArUco marker, ready to be printed.