mexopencv
3.4.1
MEX interface for OpenCV library
|
Global constant definitions. More...
#include "MxArray.hpp"
Go to the source code of this file.
Macros | |
#define | UPDATE_FLAG(NUM, TF, BIT) |
set or clear a bit in flag depending on bool value More... | |
Functions | |
void | nargchk (bool cond) |
Alias for input/output arguments number check. More... | |
template<typename T > | |
std::vector< cv::Point_< T > > | MxArrayToVectorPoint (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Point_<T>> More... | |
template<typename T > | |
std::vector< cv::Point3_< T > > | MxArrayToVectorPoint3 (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Point3_<T>> More... | |
template<typename T > | |
std::vector< cv::Size_< T > > | MxArrayToVectorSize (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Size_<T>> More... | |
template<typename T > | |
std::vector< cv::Rect_< T > > | MxArrayToVectorRect (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Rect_<T>> More... | |
template<typename T , int cn> | |
std::vector< cv::Vec< T, cn > > | MxArrayToVectorVec (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Vec<T,cn>> More... | |
template<typename T , int m, int n> | |
std::vector< cv::Matx< T, m, n > > | MxArrayToVectorMatx (const MxArray &arr) |
Convert an MxArray to std::vector<cv::Matx<T,m,n>> More... | |
template<typename T > | |
std::vector< std::vector< T > > | MxArrayToVectorVectorPrimitive (const MxArray &arr) |
Convert an MxArray to std::vector<std::vector<T>> More... | |
template<typename T > | |
std::vector< std::vector< cv::Point_< T > > > | MxArrayToVectorVectorPoint (const MxArray &arr) |
Convert an MxArray to std::vector<std::vector<cv::Point_<T>>> More... | |
template<typename T > | |
std::vector< std::vector< cv::Point3_< T > > > | MxArrayToVectorVectorPoint3 (const MxArray &arr) |
Convert an MxArray to std::vector<std::vector<cv::Point3_<T>>> More... | |
Variables | |
const ConstMap< std::string, int > | ClassNameMap |
Translates class name used in MATLAB to equivalent OpenCV depth. More... | |
const ConstMap< int, std::string > | ClassNameInvMap |
Translates data type definition used in OpenCV to that of MATLAB. More... | |
const ConstMap< std::string, cv::Scalar > | ColorType |
Translates MATLAB color names (see ColorSpec ) into OpenCV scalars. More... | |
const ConstMap< std::string, int > | BorderType |
Border type map for option processing. More... | |
const ConstMap< int, std::string > | BorderTypeInv |
Inverse border type map for option processing. More... | |
const ConstMap< std::string, int > | InterpType |
Interpolation type map for option processing. More... | |
const ConstMap< std::string, int > | ThreshType |
Thresholding type map for option processing. More... | |
const ConstMap< std::string, int > | DistType |
Distance types for Distance Transform and M-estimators. More... | |
const ConstMap< int, std::string > | DistTypeInv |
Inverse Distance types for Distance Transform and M-estimators. More... | |
const ConstMap< std::string, int > | LineType |
Line type for drawing. More... | |
const ConstMap< std::string, int > | ThicknessType |
Thickness type for drawing. More... | |
const ConstMap< std::string, int > | FontFace |
Font faces for drawing. More... | |
const ConstMap< std::string, int > | FontStyle |
Font styles for drawing. More... | |
const ConstMap< std::string, int > | NormType |
Norm type map for option processing. More... | |
const ConstMap< int, std::string > | NormTypeInv |
Inverse norm type map for option processing. More... | |
Global constant definitions.
Header file for MATLAB MEX-functions that use OpenCV library. The file includes definition of MxArray class that converts between mxArray and a couple of std:: and cv:: data types including cv::Mat.
Definition in file mexopencv.hpp.
#define UPDATE_FLAG | ( | NUM, | |
TF, | |||
BIT | |||
) |
set or clear a bit in flag depending on bool value
Definition at line 174 of file mexopencv.hpp.
std::vector<cv::Matx<T,m,n> > MxArrayToVectorMatx | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Matx<T,m,n>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 420 of file mexopencv.hpp.
std::vector<cv::Point_<T> > MxArrayToVectorPoint | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Point_<T>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 208 of file mexopencv.hpp.
std::vector<cv::Point3_<T> > MxArrayToVectorPoint3 | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Point3_<T>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 250 of file mexopencv.hpp.
std::vector<cv::Rect_<T> > MxArrayToVectorRect | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Rect_<T>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 335 of file mexopencv.hpp.
std::vector<cv::Size_<T> > MxArrayToVectorSize | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Size_<T>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 292 of file mexopencv.hpp.
std::vector<cv::Vec<T,cn> > MxArrayToVectorVec | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<cv::Vec<T,cn>>
arr | MxArray object. In one of the following forms:
|
N
Example:
Definition at line 378 of file mexopencv.hpp.
std::vector<std::vector<cv::Point_<T> > > MxArrayToVectorVectorPoint | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<std::vector<cv::Point_<T>>>
arr | MxArray object. In one of the following forms:
|
Example:
Definition at line 496 of file mexopencv.hpp.
std::vector<std::vector<cv::Point3_<T> > > MxArrayToVectorVectorPoint3 | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<std::vector<cv::Point3_<T>>>
arr | MxArray object. In one of the following forms:
|
Example:
Definition at line 532 of file mexopencv.hpp.
std::vector<std::vector<T> > MxArrayToVectorVectorPrimitive | ( | const MxArray & | arr | ) |
Convert an MxArray to std::vector<std::vector<T>>
arr | MxArray object. In one of the following forms:
|
Example:
Definition at line 463 of file mexopencv.hpp.
|
inline |
Alias for input/output arguments number check.
Definition at line 181 of file mexopencv.hpp.
const ConstMap<std::string,int> BorderType |
Border type map for option processing.
Definition at line 66 of file mexopencv.hpp.
const ConstMap<int,std::string> BorderTypeInv |
Inverse border type map for option processing.
Definition at line 76 of file mexopencv.hpp.
const ConstMap<int,std::string> ClassNameInvMap |
Translates data type definition used in OpenCV to that of MATLAB.
depth | OpenCV cv::Mat data depth, e.g. CV_8U . |
uint8
. Definition at line 42 of file mexopencv.hpp.
const ConstMap<std::string,int> ClassNameMap |
Translates class name used in MATLAB to equivalent OpenCV depth.
classname | numeric MATLAB data type, e.g. uint8 . |
CV_8U
.Note: 64-bit integer types are not supported by OpenCV. Also, OpenCV only has signed 32-bit integer type.
Definition at line 27 of file mexopencv.hpp.
const ConstMap<std::string,cv::Scalar> ColorType |
Translates MATLAB color names (see ColorSpec
) into OpenCV scalars.
name | short name of MATLAB colors. One of eight predefined colors. |
Definition at line 55 of file mexopencv.hpp.
const ConstMap<std::string,int> DistType |
Distance types for Distance Transform and M-estimators.
Definition at line 102 of file mexopencv.hpp.
const ConstMap<int,std::string> DistTypeInv |
Inverse Distance types for Distance Transform and M-estimators.
Definition at line 113 of file mexopencv.hpp.
const ConstMap<std::string,int> FontFace |
Font faces for drawing.
Definition at line 134 of file mexopencv.hpp.
const ConstMap<std::string,int> FontStyle |
Font styles for drawing.
Definition at line 145 of file mexopencv.hpp.
const ConstMap<std::string,int> InterpType |
Interpolation type map for option processing.
Definition at line 85 of file mexopencv.hpp.
const ConstMap<std::string,int> LineType |
Line type for drawing.
Definition at line 124 of file mexopencv.hpp.
const ConstMap<std::string,int> NormType |
Norm type map for option processing.
Definition at line 150 of file mexopencv.hpp.
const ConstMap<int,std::string> NormTypeInv |
Inverse norm type map for option processing.
Definition at line 160 of file mexopencv.hpp.
const ConstMap<std::string,int> ThicknessType |
Thickness type for drawing.
Definition at line 130 of file mexopencv.hpp.
const ConstMap<std::string,int> ThreshType |
Thresholding type map for option processing.
Definition at line 94 of file mexopencv.hpp.