OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.ObjdetectModule.GridBoard Class Reference

Planar board with grid arrangement of markers. More...

Public Member Functions

 GridBoard (in Vec2d size, float markerLength, float markerSeparation, Dictionary dictionary)
 GridBoard constructor.
 
 GridBoard (in Vec2d size, float markerLength, float markerSeparation, Dictionary dictionary, Mat ids)
 GridBoard constructor.
 
 GridBoard (in(double width, double height) size, float markerLength, float markerSeparation, Dictionary dictionary)
 GridBoard constructor.
 
 GridBoard (in(double width, double height) size, float markerLength, float markerSeparation, Dictionary dictionary, Mat ids)
 GridBoard constructor.
 
 GridBoard (Size size, float markerLength, float markerSeparation, Dictionary dictionary)
 GridBoard constructor.
 
 GridBoard (Size size, float markerLength, float markerSeparation, Dictionary dictionary, Mat ids)
 GridBoard constructor.
 
Size getGridSize ()
 
double double height getGridSizeAsValueTuple ()
 
Vec2d getGridSizeAsVec2d ()
 
float getMarkerLength ()
 
float getMarkerSeparation ()
 
- Public Member Functions inherited from OpenCVForUnity.ObjdetectModule.Board
 Board (List< Mat > objPoints, Dictionary dictionary, Mat ids)
 Common Board constructor.
 
void generateImage (in Vec2d outSize, Mat img)
 Draw a planar board.
 
void generateImage (in Vec2d outSize, Mat img, int marginSize)
 Draw a planar board.
 
void generateImage (in Vec2d outSize, Mat img, int marginSize, int borderBits)
 Draw a planar board.
 
void generateImage (in(double width, double height) outSize, Mat img)
 Draw a planar board.
 
void generateImage (in(double width, double height) outSize, Mat img, int marginSize)
 Draw a planar board.
 
void generateImage (in(double width, double height) outSize, Mat img, int marginSize, int borderBits)
 Draw a planar board.
 
void generateImage (Size outSize, Mat img)
 Draw a planar board.
 
void generateImage (Size outSize, Mat img, int marginSize)
 Draw a planar board.
 
void generateImage (Size outSize, Mat img, int marginSize, int borderBits)
 Draw a planar board.
 
Dictionary getDictionary ()
 return the Dictionary of markers employed for this board
 
MatOfInt getIds ()
 vector of the identifiers of the markers in the board (should be the same size as objPoints)
 
IntPtr getNativeObjAddr ()
 
List< MatOfPoint3fgetObjPoints ()
 return array of object points of all the marker corners in the board.
 
Point3 getRightBottomCorner ()
 get coordinate of the bottom right corner of the board, is set when calling the function create()
 
double double double z getRightBottomCornerAsValueTuple ()
 
Vec3d getRightBottomCornerAsVec3d ()
 get coordinate of the bottom right corner of the board, is set when calling the function create()
 
void matchImagePoints (List< Mat > detectedCorners, Mat detectedIds, Mat objPoints, Mat imgPoints)
 Given a board configuration and a set of detected markers, returns the corresponding image points and object points, can be used in solvePnP()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new GridBoard __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.ObjdetectModule.Board
static Board __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

double width
 
- Public Attributes inherited from OpenCVForUnity.ObjdetectModule.Board
double x
 get coordinate of the bottom right corner of the board, is set when calling the function create()
 
double double y
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.ObjdetectModule.Board
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.ObjdetectModule.Board
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

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 image can be drawn using generateImage() method.

Constructor & Destructor Documentation

◆ GridBoard() [1/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( Size size,
float markerLength,
float markerSeparation,
Dictionary dictionary,
Mat ids )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

◆ GridBoard() [2/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( Size size,
float markerLength,
float markerSeparation,
Dictionary dictionary )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

◆ GridBoard() [3/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( in Vec2d size,
float markerLength,
float markerSeparation,
Dictionary dictionary,
Mat ids )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

◆ GridBoard() [4/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( in Vec2d size,
float markerLength,
float markerSeparation,
Dictionary dictionary )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

◆ GridBoard() [5/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( in(double width, double height) size,
float markerLength,
float markerSeparation,
Dictionary dictionary,
Mat ids )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

◆ GridBoard() [6/6]

OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard ( in(double width, double height) size,
float markerLength,
float markerSeparation,
Dictionary dictionary )

GridBoard constructor.

Parameters
sizenumber of markers in x and y directions
markerLengthmarker side length (normally in meters)
markerSeparationseparation between two markers (same unit as markerLength)
dictionarydictionary of markers indicating the type of markers
idsset of marker ids in dictionary to use on board.

Member Function Documentation

◆ __fromPtr__()

static new GridBoard OpenCVForUnity.ObjdetectModule.GridBoard.__fromPtr__ ( IntPtr addr)
static

◆ Dispose()

override void OpenCVForUnity.ObjdetectModule.GridBoard.Dispose ( bool disposing)
protectedvirtual

◆ getGridSize()

Size OpenCVForUnity.ObjdetectModule.GridBoard.getGridSize ( )

◆ getGridSizeAsValueTuple()

double double height OpenCVForUnity.ObjdetectModule.GridBoard.getGridSizeAsValueTuple ( )

◆ getGridSizeAsVec2d()

Vec2d OpenCVForUnity.ObjdetectModule.GridBoard.getGridSizeAsVec2d ( )

◆ getMarkerLength()

float OpenCVForUnity.ObjdetectModule.GridBoard.getMarkerLength ( )

◆ getMarkerSeparation()

float OpenCVForUnity.ObjdetectModule.GridBoard.getMarkerSeparation ( )

Member Data Documentation

◆ width

double OpenCVForUnity.ObjdetectModule.GridBoard.width

The documentation for this class was generated from the following files: