Table of Contents

Class GridBoard

Namespace
OpenCvSharp.Aruco
Assembly
OpenCvSharp.dll

Planar board with grid arrangement of markers. More common type of board. All markers are placed in the same plane in a grid arrangement. The board image can be drawn using the GenerateImage() method.

public class GridBoard : Board, IDisposable
Inheritance
GridBoard
Implements
Inherited Members

Constructors

GridBoard(Size, float, float, Dictionary, IEnumerable<int>?)

GridBoard constructor

public GridBoard(Size size, float markerLength, float markerSeparation, Dictionary dictionary, IEnumerable<int>? ids = null)

Parameters

size Size

number of markers in x and y directions

markerLength float

marker side length (normally in meters)

markerSeparation float

separation between two markers (same unit as markerLength)

dictionary Dictionary

dictionary of markers indicating the type of markers

ids IEnumerable<int>

set of marker ids in dictionary to use on board. If null, sequential ids starting at 0 are used.

Methods

GetGridSize()

Number of markers in x and y directions.

public Size GetGridSize()

Returns

Size

GetMarkerLength()

Marker side length (normally in meters).

public float GetMarkerLength()

Returns

float

GetMarkerSeparation()

Separation between two markers (same unit as markerLength).

public float GetMarkerSeparation()

Returns

float