mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables

Common definitions for the aruco module. More...

#include "mexopencv.hpp"
#include "opencv2/aruco.hpp"
#include "opencv2/aruco/charuco.hpp"

Go to the source code of this file.

Functions

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

Variables

const ConstMap< std::string, cv::aruco::PREDEFINED_DICTIONARY_NAMEPredefinedDictionaryMap
 Predefined dictionary types. More...
 
const ConstMap< std::string, int > CornerRefineMethodMap
 Corner refinement methods map. More...
 
const ConstMap< int, std::stringCornerRefineMethodInvMap
 Inverse corner refinement methods map. More...
 

Detailed Description

Common definitions for the aruco module.

Author
Amro
Date
2016

Header file for MEX-functions that use aruco module from OpenCV library. This file includes maps for option processing, as well as functions for creating instances of classes from parsed arguments.

Definition in file mexopencv_aruco.hpp.

Function Documentation

◆ create_Board()

cv::Ptr<cv::aruco::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()

cv::Ptr<cv::aruco::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()

cv::Ptr<cv::aruco::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()

cv::Ptr<cv::aruco::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()

cv::Ptr<cv::aruco::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()

cv::Ptr<cv::aruco::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 cv::Ptr< cv::aruco::Dictionary > &  dictionary)

Convert Dictionary to scalar struct.

Parameters
dictionarysmart pointer to an instance of dictionary
Returns
scalar struct MxArray object

◆ 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.

Variable Documentation

◆ CornerRefineMethodInvMap

const ConstMap<int, std::string> CornerRefineMethodInvMap
Initial value:
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

Inverse corner refinement methods map.

Definition at line 50 of file mexopencv_aruco.hpp.

◆ CornerRefineMethodMap

const ConstMap<std::string, int> CornerRefineMethodMap
Initial value:
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

Corner refinement methods map.

Definition at line 44 of file mexopencv_aruco.hpp.

◆ PredefinedDictionaryMap

Initial value:

Predefined dictionary types.

Definition at line 23 of file mexopencv_aruco.hpp.