mexopencv  3.4.1
MEX interface for OpenCV library
Functions

Implementation of mexopencv_aruco. More...

#include "mexopencv_aruco.hpp"
#include <cstdlib>

Go to the source code of this file.

Functions

Ptr< DetectorParametersMxArrayToDetectorParameters (const MxArray &s)
 Convert MxArray to cv::Ptr<cv::aruco::DetectorParameters> More...
 
Ptr< DictionaryMxArrayToDictionary (const MxArray &arr)
 Convert MxArray to cv::Ptr<cv::aruco::Dictionary> More...
 
Ptr< BoardMxArrayToBoard (const MxArray &arr)
 Convert MxArray to cv::Ptr<cv::aruco::Board> More...
 
MxArray toStruct (const Ptr< DetectorParameters > &params)
 Convert detector parameters to scalar struct. More...
 
MxArray toStruct (const Ptr< Dictionary > &dictionary)
 
MxArray toStruct (const Ptr< Board > &board)
 Convert Board to scalar struct. More...
 
MxArray toStruct (const Ptr< GridBoard > &board)
 Convert GridBoard to scalar struct. More...
 
MxArray toStruct (const Ptr< CharucoBoard > &board)
 Convert CharucoBoard to scalar struct. More...
 
Ptr< Boardcreate_Board (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of Board using options in arguments. More...
 
Ptr< GridBoardcreate_GridBoard (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of GridBoard using options in arguments. More...
 
Ptr< CharucoBoardcreate_CharucoBoard (vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of CharucoBoard using options in arguments. More...
 

Detailed Description

Implementation of mexopencv_aruco.

Author
Amro
Date
2016

Definition in file mexopencv_aruco.cpp.

Function Documentation

◆ create_Board()

Ptr<Board> create_Board ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of Board using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance of created Board

Definition at line 274 of file mexopencv_aruco.cpp.

◆ create_CharucoBoard()

Ptr<CharucoBoard> create_CharucoBoard ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of CharucoBoard using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance of created CharucoBoard

Definition at line 312 of file mexopencv_aruco.cpp.

◆ create_GridBoard()

Ptr<GridBoard> create_GridBoard ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of GridBoard using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to an instance of created GridBoard

Definition at line 287 of file mexopencv_aruco.cpp.

◆ MxArrayToBoard()

Ptr<Board> MxArrayToBoard ( const MxArray arr)

Convert MxArray to cv::Ptr<cv::aruco::Board>

Parameters
arrMxArray object. In one of the following forms:
  • a scalar struct with the following fields: "objPoints", "dictionary", and "ids".
  • a cell-array of the form: {Type, ...} starting with the board type ("Board", "GridBoard", or "CharucoBoard") followed by board-specific options.
Returns
smart pointer to an instance of Board object

Definition at line 141 of file mexopencv_aruco.cpp.

◆ MxArrayToDetectorParameters()

Ptr<DetectorParameters> MxArrayToDetectorParameters ( const MxArray s)

Convert MxArray to cv::Ptr<cv::aruco::DetectorParameters>

Parameters
sscalar struct MxArray object
Returns
smart pointer to a detector parameters object

Definition at line 18 of file mexopencv_aruco.cpp.

◆ MxArrayToDictionary()

Ptr<Dictionary> MxArrayToDictionary ( const MxArray arr)

Convert MxArray to cv::Ptr<cv::aruco::Dictionary>

Parameters
arrMxArray object. In one of the following forms:
  • a string, one of the recognized predefined dictionaries.
  • a scalar struct with the following fields: "bytesList", "markerSize", and "maxCorrectionBits".
  • a cell-array of the form: {Type, ...} starting with the dictionary type ("Predefined", "Custom", or "Manual") followed by dictionary-specific options.
Returns
smart pointer to an instance of Dictionary object

Definition at line 71 of file mexopencv_aruco.cpp.

◆ toStruct() [1/5]

MxArray toStruct ( const cv::Ptr< cv::aruco::DetectorParameters > &  params)

Convert detector parameters to scalar struct.

Parameters
paramssmart pointer to an instance of detector parameters
Returns
scalar struct MxArray object

Definition at line 169 of file mexopencv_aruco.cpp.

◆ toStruct() [2/5]

MxArray toStruct ( const Ptr< Dictionary > &  dictionary)

Definition at line 209 of file mexopencv_aruco.cpp.

◆ toStruct() [3/5]

MxArray toStruct ( const cv::Ptr< cv::aruco::Board > &  board)

Convert Board to scalar struct.

Parameters
boardsmart pointer to an instance of Board
Returns
scalar struct MxArray object

Definition at line 229 of file mexopencv_aruco.cpp.

◆ toStruct() [4/5]

MxArray toStruct ( const cv::Ptr< cv::aruco::GridBoard > &  board)

Convert GridBoard to scalar struct.

Parameters
boardsmart pointer to an instance of GridBoard
Returns
scalar struct MxArray object

Definition at line 239 of file mexopencv_aruco.cpp.

◆ toStruct() [5/5]

MxArray toStruct ( const cv::Ptr< cv::aruco::CharucoBoard > &  board)

Convert CharucoBoard to scalar struct.

Parameters
boardsmart pointer to an instance of CharucoBoard
Returns
scalar struct MxArray object

Definition at line 253 of file mexopencv_aruco.cpp.