23 nargchk(nrhs>=2 && (nrhs%2)==0 && nlhs<=1);
32 bool warp_inverse =
false;
35 for (
int i=2; i<nrhs; i+=2) {
36 string key(rhs[i].toString());
38 dst = rhs[i+1].toMat();
39 else if (key ==
"DSize")
40 dsize = rhs[i+1].toSize();
41 else if (key ==
"Interpolation")
43 else if (key ==
"WarpInverse")
44 warp_inverse = rhs[i+1].toBool();
45 else if (key ==
"BorderType")
47 else if (key ==
"BorderValue")
48 borderValue = rhs[i+1].toScalar();
51 "Unrecognized option %s", key.
c_str());
const ConstMap< std::string, int > InterpType
Interpolation type map for option processing.
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 mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.