@Namespace(value="cv::aruco") @NoOffset @Properties(inherit=opencv_objdetect.class) public class Board extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Board.Impl |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Board() |
Board(GpuMatVector objPoints,
Dictionary dictionary,
GpuMat ids) |
Board(GpuMatVector objPoints,
Dictionary dictionary,
Mat ids) |
Board(GpuMatVector objPoints,
Dictionary dictionary,
UMat ids) |
Board(long size)
Native array allocator.
|
Board(MatVector objPoints,
Dictionary dictionary,
GpuMat ids) |
Board(MatVector objPoints,
Dictionary dictionary,
Mat ids)
\brief Common Board constructor
|
Board(MatVector objPoints,
Dictionary dictionary,
UMat ids) |
Board(Pointer p)
Pointer cast constructor.
|
Board(UMatVector objPoints,
Dictionary dictionary,
GpuMat ids) |
Board(UMatVector objPoints,
Dictionary dictionary,
Mat ids) |
Board(UMatVector objPoints,
Dictionary dictionary,
UMat ids) |
Modifier and Type | Method and Description |
---|---|
void |
generateImage(Size outSize,
GpuMat img) |
void |
generateImage(Size outSize,
GpuMat img,
int marginSize,
int borderBits) |
void |
generateImage(Size outSize,
Mat img) |
void |
generateImage(Size outSize,
Mat img,
int marginSize,
int borderBits)
\brief Draw a planar board
|
void |
generateImage(Size outSize,
UMat img) |
void |
generateImage(Size outSize,
UMat img,
int marginSize,
int borderBits) |
Dictionary |
getDictionary()
\brief return the Dictionary of markers employed for this board
|
IntPointer |
getIds()
\brief vector of the identifiers of the markers in the board (should be the same size as objPoints)
|
Point3fVectorVector |
getObjPoints()
\brief return array of object points of all the marker corners in the board.
|
Board |
getPointer(long i) |
Point3f |
getRightBottomCorner()
\brief get coordinate of the bottom right corner of the board, is set when calling the function create()
|
void |
matchImagePoints(GpuMatVector detectedCorners,
GpuMat detectedIds,
GpuMat objPoints,
GpuMat imgPoints) |
void |
matchImagePoints(GpuMatVector detectedCorners,
Mat detectedIds,
Mat objPoints,
Mat imgPoints) |
void |
matchImagePoints(GpuMatVector detectedCorners,
UMat detectedIds,
UMat objPoints,
UMat imgPoints) |
void |
matchImagePoints(MatVector detectedCorners,
GpuMat detectedIds,
GpuMat objPoints,
GpuMat imgPoints) |
void |
matchImagePoints(MatVector detectedCorners,
Mat detectedIds,
Mat objPoints,
Mat imgPoints)
\brief Given a board configuration and a set of detected markers, returns the corresponding
image points and object points, can be used in solvePnP()
|
void |
matchImagePoints(MatVector detectedCorners,
UMat detectedIds,
UMat objPoints,
UMat imgPoints) |
void |
matchImagePoints(UMatVector detectedCorners,
GpuMat detectedIds,
GpuMat objPoints,
GpuMat imgPoints) |
void |
matchImagePoints(UMatVector detectedCorners,
Mat detectedIds,
Mat objPoints,
Mat imgPoints) |
void |
matchImagePoints(UMatVector detectedCorners,
UMat detectedIds,
UMat objPoints,
UMat imgPoints) |
Board |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Board(Pointer p)
Pointer(Pointer)
.public Board(long size)
Pointer.position(long)
.public Board(@ByVal MatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal Mat ids)
objPoints
- array of object points of all the marker corners in the boarddictionary
- the dictionary of markers employed for this boardids
- vector of the identifiers of the markers in the boardpublic Board(@ByVal UMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal Mat ids)
public Board(@ByVal GpuMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal Mat ids)
public Board(@ByVal MatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal UMat ids)
public Board(@ByVal UMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal UMat ids)
public Board(@ByVal GpuMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal UMat ids)
public Board(@ByVal MatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal GpuMat ids)
public Board(@ByVal UMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal GpuMat ids)
public Board(@ByVal GpuMatVector objPoints, @Const @ByRef Dictionary dictionary, @ByVal GpuMat ids)
public Board()
public Board getPointer(long i)
getPointer
in class Pointer
@Const @ByRef public Dictionary getDictionary()
@Const @ByRef public Point3fVectorVector getObjPoints()
@StdVector public IntPointer getIds()
@Const @ByRef public Point3f getRightBottomCorner()
public void matchImagePoints(@ByVal MatVector detectedCorners, @ByVal Mat detectedIds, @ByVal Mat objPoints, @ByVal Mat imgPoints)
detectedCorners
- List of detected marker corners of the board.
For cv::Board and cv::GridBoard the method expects std::vectordetectedIds
- List of identifiers for each marker or charuco corner.
For any Board class the method expects std::vectorobjPoints
- Vector of marker points in the board coordinate space.
For any Board class the method expects std::vectorimgPoints
- Vector of marker points in the image coordinate space.
For any Board class the method expects std::vectorsolvePnP
public void matchImagePoints(@ByVal UMatVector detectedCorners, @ByVal Mat detectedIds, @ByVal Mat objPoints, @ByVal Mat imgPoints)
public void matchImagePoints(@ByVal GpuMatVector detectedCorners, @ByVal Mat detectedIds, @ByVal Mat objPoints, @ByVal Mat imgPoints)
public void matchImagePoints(@ByVal MatVector detectedCorners, @ByVal UMat detectedIds, @ByVal UMat objPoints, @ByVal UMat imgPoints)
public void matchImagePoints(@ByVal UMatVector detectedCorners, @ByVal UMat detectedIds, @ByVal UMat objPoints, @ByVal UMat imgPoints)
public void matchImagePoints(@ByVal GpuMatVector detectedCorners, @ByVal UMat detectedIds, @ByVal UMat objPoints, @ByVal UMat imgPoints)
public void matchImagePoints(@ByVal MatVector detectedCorners, @ByVal GpuMat detectedIds, @ByVal GpuMat objPoints, @ByVal GpuMat imgPoints)
public void matchImagePoints(@ByVal UMatVector detectedCorners, @ByVal GpuMat detectedIds, @ByVal GpuMat objPoints, @ByVal GpuMat imgPoints)
public void matchImagePoints(@ByVal GpuMatVector detectedCorners, @ByVal GpuMat detectedIds, @ByVal GpuMat objPoints, @ByVal GpuMat imgPoints)
public void generateImage(@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 board, ready to be printed.public void generateImage(@ByVal Size outSize, @ByVal UMat img, int marginSize, int borderBits)
public void generateImage(@ByVal Size outSize, @ByVal GpuMat img, int marginSize, int borderBits)
Copyright © 2024. All rights reserved.