OpenCV for Unity
2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
|
Board of ArUco markers. More...
Public Member Functions | |
IntPtr | getNativeObjAddr () |
Board (List< Mat > objPoints, Dictionary dictionary, Mat ids) | |
Common Board constructor. More... | |
Dictionary | getDictionary () |
return the Dictionary of markers employed for this board More... | |
List< MatOfPoint3f > | getObjPoints () |
return array of object points of all the marker corners in the board. More... | |
MatOfInt | getIds () |
vector of the identifiers of the markers in the board (should be the same size as objPoints) More... | |
Point3 | getRightBottomCorner () |
get coordinate of the bottom right corner of the board, is set when calling the function create() More... | |
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() More... | |
void | generateImage (Size outSize, Mat img, int marginSize, int borderBits) |
Draw a planar board. More... | |
void | generateImage (Size outSize, Mat img, int marginSize) |
Draw a planar board. More... | |
void | generateImage (Size outSize, Mat img) |
Draw a planar board. More... | |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static Board | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Board of ArUco markers.
A board is a set of markers in the 3D space with a common coordinate system. The common form of a board of marker is a planar (2D) board, however any 3D layout can be used. A Board object is composed by:
OpenCVForUnity.ObjdetectModule.Board.Board | ( | List< Mat > | objPoints, |
Dictionary | dictionary, | ||
Mat | ids | ||
) |
Common Board constructor.
objPoints | array of object points of all the marker corners in the board |
dictionary | the dictionary of markers employed for this board |
ids | vector of the identifiers of the markers in the board |
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableOpenCVObject.
Reimplemented in OpenCVForUnity.ObjdetectModule.CharucoBoard, and OpenCVForUnity.ObjdetectModule.GridBoard.
void OpenCVForUnity.ObjdetectModule.Board.generateImage | ( | Size | outSize, |
Mat | img, | ||
int | marginSize, | ||
int | borderBits | ||
) |
Draw a planar board.
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 |
borderBits | width of the marker borders. This function return the image of the board, ready to be printed. |
Draw a planar board.
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 |
borderBits | width of the marker borders. This function return the image of the board, ready to be printed. |
Draw a planar board.
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 |
borderBits | width of the marker borders. This function return the image of the board, ready to be printed. |
Dictionary OpenCVForUnity.ObjdetectModule.Board.getDictionary | ( | ) |
return the Dictionary of markers employed for this board
MatOfInt OpenCVForUnity.ObjdetectModule.Board.getIds | ( | ) |
vector of the identifiers of the markers in the board (should be the same size as objPoints)
IntPtr OpenCVForUnity.ObjdetectModule.Board.getNativeObjAddr | ( | ) |
List<MatOfPoint3f> OpenCVForUnity.ObjdetectModule.Board.getObjPoints | ( | ) |
return array of object points of all the marker corners in the board.
Each marker include its 4 corners in this order:
Markers are placed in a certain order - row by row, left to right in every row. For M markers, the size is Mx4.
Point3 OpenCVForUnity.ObjdetectModule.Board.getRightBottomCorner | ( | ) |
get coordinate of the bottom right corner of the board, is set when calling the function create()
void OpenCVForUnity.ObjdetectModule.Board.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()
detectedCorners | List of detected marker corners of the board. For cv::Board and cv::GridBoard the method expects std::vector<std::vector<Point2f>> or std::vector<Mat> with Aruco marker corners. For cv::CharucoBoard the method expects std::vector<Point2f> or Mat with ChAruco corners (chess board corners matched with Aruco markers). |
detectedIds | List of identifiers for each marker or charuco corner. For any Board class the method expects std::vector<int> or Mat. |
objPoints | Vector of marker points in the board coordinate space. For any Board class the method expects std::vector<cv::Point3f> objectPoints or cv::Mat |
imgPoints | Vector of marker points in the image coordinate space. For any Board class the method expects std::vector<cv::Point2f> objectPoints or cv::Mat |