Table of Contents

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

squaresX int

number of chessboard squares in x direction

squaresY int

number of chessboard squares in y direction

squareLength float

chessboard square side length (normally in meters)

markerLength float

marker side length (same unit as squareLength)

dictionary Dictionary

dictionary of markers

Properties

ChessboardSize

Gets the number of chessboard squares in x and y directions.

public Size ChessboardSize { get; }

Property Value

Size

LegacyPattern

Gets or sets the legacy pattern mode for compatibility with patterns created before OpenCV 4.6.

public bool LegacyPattern { get; set; }

Property Value

bool

MarkerLength

Gets the marker side length.

public float MarkerLength { get; }

Property Value

float

SquareLength

Gets the chessboard square side length.

public float SquareLength { get; }

Property Value

float

Methods

CheckCharucoCornersCollinear(InputArray)

Check whether the ChArUco markers are collinear.

public bool CheckCharucoCornersCollinear(InputArray charucoIds)

Parameters

charucoIds InputArray

Returns

bool

GenerateImage(Size, OutputArray, int, int)

Generate the board image.

public void GenerateImage(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1)

Parameters

outSize Size
img OutputArray
marginSize int
borderBits int