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
sizeSizenumber of markers in x and y directions
markerLengthfloatmarker side length (normally in meters)
markerSeparationfloatseparation between two markers (same unit as markerLength)
dictionaryDictionarydictionary of markers indicating the type of markers
idsIEnumerable<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
GetMarkerLength()
Marker side length (normally in meters).
public float GetMarkerLength()
Returns
GetMarkerSeparation()
Separation between two markers (same unit as markerLength).
public float GetMarkerSeparation()