GridBoard
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 can be drawn using drawPlanarBoard() function (- see: drawPlanarBoard)
Member of Aruco
-
Create a GridBoard object
This functions creates a GridBoard object given the number of markers in each direction and the marker size and marker separation.
Declaration
Objective-C
+ (nonnull GridBoard *)create:(int)markersX markersY:(int)markersY markerLength:(float)markerLength markerSeparation:(float)markerSeparation dictionary:(nonnull Dictionary *)dictionary firstMarker:(int)firstMarker;Swift
class func create(markersX: Int32, markersY: Int32, markerLength: Float, markerSeparation: Float, dictionary: Dictionary, firstMarker: Int32) -> GridBoardParameters
markersXnumber of markers in X direction
markersYnumber of markers in Y direction
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
firstMarkerid of first marker in dictionary to use on board.
Return Value
the output GridBoard object
-
Create a GridBoard object
This functions creates a GridBoard object given the number of markers in each direction and the marker size and marker separation.
Declaration
Objective-C
+ (nonnull GridBoard *)create:(int)markersX markersY:(int)markersY markerLength:(float)markerLength markerSeparation:(float)markerSeparation dictionary:(nonnull Dictionary *)dictionary;Swift
class func create(markersX: Int32, markersY: Int32, markerLength: Float, markerSeparation: Float, dictionary: Dictionary) -> GridBoardParameters
markersXnumber of markers in X direction
markersYnumber of markers in Y direction
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
Return Value
the output GridBoard object
-
Declaration
Objective-C
- (float)getMarkerLength NS_SWIFT_NAME(getMarkerLength());Swift
func getMarkerLength() -> Float -
Declaration
Objective-C
- (float)getMarkerSeparation NS_SWIFT_NAME(getMarkerSeparation());Swift
func getMarkerSeparation() -> Float -
Draw a GridBoard
This function return the image of the GridBoard, ready to be printed.
Declaration
Parameters
outSizesize of the output image in pixels.
imgoutput image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.
marginSizeminimum margins (in pixels) of the board in the output image
borderBitswidth of the marker borders.
-
Draw a GridBoard
This function return the image of the GridBoard, ready to be printed.
Declaration
Parameters
outSizesize of the output image in pixels.
imgoutput image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.
marginSizeminimum margins (in pixels) of the board in the output image
-
Draw a GridBoard
This function return the image of the GridBoard, ready to be printed.
Declaration
Parameters
outSizesize of the output image in pixels.
imgoutput image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.
View on GitHub
GridBoard Class Reference