Class CharucoBoard
- Namespace
- OpenCvSharp.Aruco
- Assembly
- OpenCvSharp.dll
ChArUco board — a planar chessboard where the markers are placed inside the white squares.
public class CharucoBoard : CvObject, IDisposable
- Inheritance
-
CharucoBoard
- Implements
- Inherited Members
Constructors
CharucoBoard(int, int, float, float, Dictionary)
Creates a CharucoBoard.
public CharucoBoard(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary)
Parameters
squaresXintnumber of chessboard squares in x direction
squaresYintnumber of chessboard squares in y direction
squareLengthfloatchessboard square side length (normally in meters)
markerLengthfloatmarker side length (same unit as squareLength)
dictionaryDictionarydictionary of markers
Properties
ChessboardSize
Gets the number of chessboard squares in x and y directions.
public Size ChessboardSize { get; }
Property Value
LegacyPattern
Gets or sets the legacy pattern mode for compatibility with patterns created before OpenCV 4.6.
public bool LegacyPattern { get; set; }
Property Value
MarkerLength
Gets the marker side length.
public float MarkerLength { get; }
Property Value
SquareLength
Gets the chessboard square side length.
public float SquareLength { get; }
Property Value
Methods
CheckCharucoCornersCollinear(InputArray)
Check whether the ChArUco markers are collinear.
public bool CheckCharucoCornersCollinear(InputArray charucoIds)
Parameters
charucoIdsInputArray
Returns
GenerateImage(Size, OutputArray, int, int)
Generate the board image.
public void GenerateImage(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1)
Parameters
outSizeSizeimgOutputArraymarginSizeintborderBitsint