23 nargchk(nrhs>=3 && (nrhs%2)==1 && nlhs<=1);
33 for (
int i=3; i<nrhs; i+=2) {
34 string key(rhs[i].toString());
36 anchor = rhs[i+1].toPoint();
37 else if (key ==
"DDepth")
38 ddepth = (rhs[i+1].isChar()) ?
40 else if (key ==
"Delta")
41 delta = rhs[i+1].toDouble();
42 else if (key ==
"BorderType")
46 "Unrecognized option %s", key.
c_str());
51 kernelX(rhs[1].
toMat()),
52 kernelY(rhs[2].
toMat());
53 sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta, borderType);
const ConstMap< std::string, int > ClassNameMap
Translates class name used in MATLAB to equivalent OpenCV depth.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
struct mxArray_tag mxArray
Forward declaration for mxArray.
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.
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.
void sepFilter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernelX, InputArray kernelY, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT)