public class CharucoBoard extends Board
Modifier | Constructor and Description |
---|---|
protected |
CharucoBoard(long addr) |
Modifier and Type | Method and Description |
---|---|
static CharucoBoard |
__fromPtr__(long addr) |
static CharucoBoard |
create(int squaresX,
int squaresY,
float squareLength,
float markerLength,
Dictionary dictionary)
Create a CharucoBoard object
|
void |
draw(Size outSize,
Mat img)
Draw a ChArUco board
|
void |
draw(Size outSize,
Mat img,
int marginSize)
Draw a ChArUco board
|
void |
draw(Size outSize,
Mat img,
int marginSize,
int borderBits)
Draw a ChArUco board
|
protected void |
finalize() |
MatOfPoint3f |
get_chessboardCorners() |
Size |
getChessboardSize() |
float |
getMarkerLength() |
float |
getSquareLength() |
create, get_dictionary, get_ids, get_objPoints, getNativeObjAddr
public static CharucoBoard __fromPtr__(long addr)
public static CharucoBoard create(int squaresX, int squaresY, float squareLength, float markerLength, Dictionary dictionary)
squaresX
- number of chessboard squares in X directionsquaresY
- number of chessboard squares in Y directionsquareLength
- chessboard square side length (normally in meters)markerLength
- marker side length (same unit than squareLength)dictionary
- dictionary of markers indicating the type of markers.
The first markers in the dictionary are used to fill the white chessboard squares.public Size getChessboardSize()
public float getMarkerLength()
public float getSquareLength()
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 ChArUco board, 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 ChArUco board, 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 ChArUco board, ready to be printed.public MatOfPoint3f get_chessboardCorners()
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2