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.
|
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< MatOfPoint3f > | getObjPoints () |
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] |
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.
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | Size | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary, | ||
Mat | ids ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | Size | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | in Vec2d | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary, | ||
Mat | ids ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | in Vec2d | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | in(double width, double height) | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary, | ||
Mat | ids ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
OpenCVForUnity.ObjdetectModule.GridBoard.GridBoard | ( | in(double width, double height) | size, |
float | markerLength, | ||
float | markerSeparation, | ||
Dictionary | dictionary ) |
GridBoard constructor.
size | number of markers in x and y directions |
markerLength | marker side length (normally in meters) |
markerSeparation | separation between two markers (same unit as markerLength) |
dictionary | dictionary of markers indicating the type of markers |
ids | set of marker ids in dictionary to use on board. |
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.ObjdetectModule.Board.
Size OpenCVForUnity.ObjdetectModule.GridBoard.getGridSize | ( | ) |
double double height OpenCVForUnity.ObjdetectModule.GridBoard.getGridSizeAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.ObjdetectModule.GridBoard.getGridSizeAsVec2d | ( | ) |
float OpenCVForUnity.ObjdetectModule.GridBoard.getMarkerLength | ( | ) |
float OpenCVForUnity.ObjdetectModule.GridBoard.getMarkerSeparation | ( | ) |
double OpenCVForUnity.ObjdetectModule.GridBoard.width |