public class GridBoard extends Board
Modifier | Constructor and Description |
---|---|
protected |
GridBoard(long addr) |
Modifier and Type | Method and Description |
---|---|
static GridBoard |
__fromPtr__(long addr) |
static GridBoard |
create(int markersX,
int markersY,
float markerLength,
float markerSeparation,
Dictionary dictionary)
Create a GridBoard object
|
static GridBoard |
create(int markersX,
int markersY,
float markerLength,
float markerSeparation,
Dictionary dictionary,
int firstMarker)
Create a GridBoard object
|
void |
draw(Size outSize,
Mat img)
Draw a GridBoard
|
void |
draw(Size outSize,
Mat img,
int marginSize)
Draw a GridBoard
|
void |
draw(Size outSize,
Mat img,
int marginSize,
int borderBits)
Draw a GridBoard
|
protected void |
finalize() |
Size |
getGridSize() |
float |
getMarkerLength() |
float |
getMarkerSeparation() |
create, get_dictionary, get_ids, get_objPoints, getNativeObjAddr
public static GridBoard __fromPtr__(long addr)
public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, Dictionary dictionary, int firstMarker)
markersX
- number of markers in X directionmarkersY
- number of markers in Y directionmarkerLength
- marker side length (normally in meters)markerSeparation
- separation between two markers (same unit as markerLength)dictionary
- dictionary of markers indicating the type of markersfirstMarker
- id of first marker in dictionary to use on board.public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, Dictionary dictionary)
markersX
- number of markers in X directionmarkersY
- number of markers in Y directionmarkerLength
- marker side length (normally in meters)markerSeparation
- separation between two markers (same unit as markerLength)dictionary
- dictionary of markers indicating the type of markerspublic Size getGridSize()
public float getMarkerLength()
public float getMarkerSeparation()
public void draw(Size outSize, Mat img, int marginSize, int borderBits)
outSize
- size of the output image in pixels.img
- output image with the board. The size of this image will be outSize
and the board will be on the center, keeping the board proportions.marginSize
- minimum margins (in pixels) of the board in the output imageborderBits
- width of the marker borders.
This function return the image of the GridBoard, ready to be printed.public void draw(Size outSize, Mat img, int marginSize)
outSize
- size of the output image in pixels.img
- output image with the board. The size of this image will be outSize
and the board will be on the center, keeping the board proportions.marginSize
- minimum margins (in pixels) of the board in the output image
This function return the image of the GridBoard, ready to be printed.public void draw(Size outSize, Mat img)
outSize
- size of the output image in pixels.img
- output image with the board. The size of this image will be outSize
and the board will be on the center, keeping the board proportions.
This function return the image of the GridBoard, ready to be printed.Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2