174 #define UPDATE_FLAG(NUM, TF, BIT) \ 176 if ((TF)) { (NUM) |= (BIT); } \ 177 else { (NUM) &= ~(BIT); } \ 207 template <
typename T>
212 if (arr.
numel() == 2)
226 &MxArray::toPoint_<T>));
230 "Unable to convert MxArray to std::vector<cv::Point_<T>>");
249 template <
typename T>
254 if (arr.
numel() == 3)
268 &MxArray::toPoint3_<T>));
272 "Unable to convert MxArray to std::vector<cv::Point3_<T>>");
291 template <
typename T>
296 if (arr.
numel() == 2)
310 &MxArray::toSize_<T>));
314 "Unable to convert MxArray to std::vector<cv::Size_<T>>");
334 template <
typename T>
339 if (arr.
numel() == 4)
353 &MxArray::toRect_<T>));
357 "Unable to convert MxArray to std::vector<cv::Rect_<T>>");
377 template <
typename T,
int cn>
382 if (arr.
numel() == cn)
396 &MxArray::toVec<T,cn>));
400 "Unable to convert MxArray to std::vector<cv::Vec<T,cn>>");
419 template <
typename T,
int m,
int n>
435 &MxArray::toMatx<T,m,n>));
439 "Unable to convert MxArray to std::vector<cv::Matx<T,m,n>>");
462 template <
typename T>
475 std::const_mem_fun_ref_t<VecT, MxArray>
func(&MxArray::toVector<T>);
495 template <
typename T>
510 vvp.
push_back(MxArrayToVectorPoint<T>(*it));
531 template <
typename T>
546 vvp.
push_back(MxArrayToVectorPoint3<T>(*it));
const ConstMap< std::string, int > FontStyle
Font styles for drawing.
const ConstMap< std::string, int > ClassNameMap
Translates class name used in MATLAB to equivalent OpenCV depth.
std::vector< cv::Size_< T > > MxArrayToVectorSize(const MxArray &arr)
Convert an MxArray to std::vector<cv::Size_<T>>
FONT_HERSHEY_COMPLEX_SMALL
std::vector< cv::Vec< T, cn > > MxArrayToVectorVec(const MxArray &arr)
Convert an MxArray to std::vector<cv::Vec<T,cn>>
mwSize numel() const
Number of elements in an array.
void copyTo(OutputArray m) const
cv::Point3_< T > toPoint3_() const
Convert MxArray to Point3_<T>.
const ConstMap< std::string, int > InterpType
Interpolation type map for option processing.
const ConstMap< std::string, int > ThreshType
Thresholding type map for option processing.
const ConstMap< int, std::string > NormTypeInv
Inverse norm type map for option processing.
cv::Rect_< T > toRect_() const
Convert MxArray to Rect_<T>.
cv::Matx< T, m, n > toMatx() const
Convert MxArray to Matx<T,m,n>.
std::vector< cv::Point_< T > > MxArrayToVectorPoint(const MxArray &arr)
Convert an MxArray to std::vector<cv::Point_<T>>
const ConstMap< int, std::string > DistTypeInv
Inverse Distance types for Distance Transform and M-estimators.
FONT_HERSHEY_SCRIPT_SIMPLEX
const ConstMap< int, std::string > BorderTypeInv
Inverse border type map for option processing.
string func
name of MATLAB function to evaluate (custom face detector)
cv::Point_< T > toPoint_() const
Convert MxArray to Point_<T>.
Mat reshape(int cn, int rows=0) const
bool isNumeric() const
Determine whether array is numeric.
std::vector< std::vector< cv::Point3_< T > > > MxArrayToVectorVectorPoint3(const MxArray &arr)
Convert an MxArray to std::vector<std::vector<cv::Point3_<T>>>
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...
const ConstMap< std::string, int > BorderType
Border type map for option processing.
bool isCell() const
Determine whether input is cell array.
const ConstMap< std::string, int > LineType
Line type for drawing.
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
const ConstMap< std::string, int > DistType
Distance types for Distance Transform and M-estimators.
const ConstMap< std::string, int > ThicknessType
Thickness type for drawing.
const ConstMap< int, std::string > ClassNameInvMap
Translates data type definition used in OpenCV to that of MATLAB.
std::vector< T > toVector() const
Convert MxArray to std::vector<T> of primitive types.
std::vector< std::vector< cv::Point_< T > > > MxArrayToVectorVectorPoint(const MxArray &arr)
Convert an MxArray to std::vector<std::vector<cv::Point_<T>>>
cv::Vec< T, cn > toVec() const
Convert MxArray to Vec<T,cn>.
cv::Mat toMat(int depth=CV_USRTYPE1, bool transpose=true) const
Convert MxArray to cv::Mat.
cv::Size_< T > toSize_() const
Convert MxArray to Size_<T>.
std::vector< std::vector< T > > MxArrayToVectorVectorPrimitive(const MxArray &arr)
Convert an MxArray to std::vector<std::vector<T>>
const ConstMap< std::string, cv::Scalar > ColorType
Translates MATLAB color names (see ColorSpec) into OpenCV scalars.
std::map wrapper with one-line initialization and lookup method.
std::vector< cv::Point3_< T > > MxArrayToVectorPoint3(const MxArray &arr)
Convert an MxArray to std::vector<cv::Point3_<T>>
std::vector< cv::Matx< T, m, n > > MxArrayToVectorMatx(const MxArray &arr)
Convert an MxArray to std::vector<cv::Matx<T,m,n>>
const ConstMap< std::string, int > NormType
Norm type map for option processing.
FONT_HERSHEY_SCRIPT_COMPLEX
std::vector< cv::Rect_< T > > MxArrayToVectorRect(const MxArray &arr)
Convert an MxArray to std::vector<cv::Rect_<T>>
const ConstMap< std::string, int > FontFace
Font faces for drawing.