31 if (rhs[0].isStruct()) {
38 string type(args[0].toString());
39 if (
type ==
"Board") {
43 else if (
type ==
"GridBoard") {
48 else if (
type ==
"CharucoBoard") {
55 "Unrecognized board type %s",
type.c_str());
struct mxArray_tag mxArray
Forward declaration for mxArray.
MxArray toStruct(const std::vector< cv::ml::DTrees::Node > &nodes)
Convert tree nodes to struct array.
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.
Common definitions for the aruco module.
cv::Ptr< cv::aruco::Board > MxArrayToBoard(const MxArray &arr)
Convert MxArray to cv::Ptr<cv::aruco::Board>
LIBMWMEX_API_EXTERN_C void mexErrMsgIdAndTxt(const char *identifier, const char *err_msg,...)
Issue formatted error message with corresponding error identifier and return to MATLAB prompt...
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.
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.
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.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.