70 for (
int i=2; i<nrhs; i+=2) {
71 string key(rhs[i].toString());
72 if (key ==
"Channels")
73 dcn = rhs[i+1].toInt();
76 "Unrecognized option %s", key.
c_str());
81 int code = rhs[1].isChar() ?
ColorConv[rhs[1].toString()] : rhs[1].toInt();
void demosaicing(InputArray _src, OutputArray _dst, int code, int dcn=0)
struct mxArray_tag mxArray
Forward declaration for mxArray.
const ConstMap< string, int > ColorConv
Color conversion types for option processing.
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...
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
std::map wrapper with one-line initialization and lookup method.