@Namespace(value="cv::aruco") @NoOffset @Properties(inherit=opencv_aruco.class) public class GridBoard extends Board
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
GridBoard()
Default native constructor.
|
GridBoard(long size)
Native array allocator.
|
GridBoard(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static GridBoard |
create(int markersX,
int markersY,
float markerLength,
float markerSeparation,
Dictionary dictionary) |
static GridBoard |
create(int markersX,
int markersY,
float markerLength,
float markerSeparation,
Dictionary dictionary,
int firstMarker)
\brief Create a GridBoard object
|
void |
draw(Size outSize,
GpuMat img) |
void |
draw(Size outSize,
GpuMat img,
int marginSize,
int borderBits) |
void |
draw(Size outSize,
Mat img) |
void |
draw(Size outSize,
Mat img,
int marginSize,
int borderBits)
\brief Draw a GridBoard
|
void |
draw(Size outSize,
UMat img) |
void |
draw(Size outSize,
UMat img,
int marginSize,
int borderBits) |
Size |
getGridSize() |
float |
getMarkerLength() |
float |
getMarkerSeparation() |
GridBoard |
position(long position) |
create, create, create, create, create, create, create, create, create, dictionary, dictionary, ids, ids, objPoints, objPointsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic GridBoard()
public GridBoard(long size)
Pointer.position(long).public GridBoard(Pointer p)
Pointer.Pointer(Pointer).public void draw(@ByVal Size outSize, @ByVal 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.@opencv_core.Ptr public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, @opencv_core.Ptr 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.@opencv_core.Ptr public static GridBoard create(int markersX, int markersY, float markerLength, float markerSeparation, @opencv_core.Ptr Dictionary dictionary)
public float getMarkerLength()
public float getMarkerSeparation()
Copyright © 2020. All rights reserved.