mexopencv
0.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/ouput arguments number check. | |
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::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, 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.
The header file for a MATLAB MEX-function that uses 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 159 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 363 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 193 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 235 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 278 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 321 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 439 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 475 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 406 of file mexopencv.hpp.
const ConstMap<std::string,int> BorderType |
Border type map for option processing.
Definition at line 52 of file mexopencv.hpp.
const ConstMap<int,std::string> BorderTypeInv |
Inverse border type map for option processing.
Definition at line 62 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,int> DistType |
Distance types for Distance Transform and M-estimators.
Definition at line 87 of file mexopencv.hpp.
const ConstMap<int,std::string> DistTypeInv |
Inverse Distance types for Distance Transform and M-estimators.
Definition at line 98 of file mexopencv.hpp.
const ConstMap<std::string,int> FontFace |
Font faces for drawing.
Definition at line 119 of file mexopencv.hpp.
const ConstMap<std::string,int> FontStyle |
Font styles for drawing.
Definition at line 130 of file mexopencv.hpp.
const ConstMap<std::string,int> InterpType |
Interpolation type map for option processing.
Definition at line 71 of file mexopencv.hpp.
const ConstMap<std::string,int> LineType |
Line type for drawing.
Definition at line 109 of file mexopencv.hpp.
const ConstMap<std::string,int> NormType |
Norm type map for option processing.
Definition at line 135 of file mexopencv.hpp.
const ConstMap<int,std::string> NormTypeInv |
Inverse norm type map for option processing.
Definition at line 145 of file mexopencv.hpp.
const ConstMap<std::string,int> ThicknessType |
Thickness type for drawing.
Definition at line 115 of file mexopencv.hpp.
const ConstMap<std::string,int> ThreshType |
Thresholding type map for option processing.
Definition at line 79 of file mexopencv.hpp.