23 nargchk(nrhs>=3 && (nrhs%2)==1 && nlhs<=1);
30 bool fillOutliersFlag =
true;
31 bool invMapFlag =
false;
32 for (
int i=3; i<nrhs; i+=2) {
33 string key(rhs[i].toString());
34 if (key ==
"Interpolation")
35 flags = (rhs[i+1].isChar()) ?
36 InterpType[rhs[i+1].toString()] : rhs[i+1].toInt();
37 else if (key ==
"FillOutliers")
38 fillOutliersFlag = rhs[i+1].toBool();
39 else if (key ==
"InverseMap")
40 invMapFlag = rhs[i+1].toBool();
43 "Unrecognized option %s", key.
c_str());
50 Point2f center(rhs[1].toPoint2f());
51 double M = rhs[2].toDouble();
52 logPolar(src, dst, center, M, flags);
const ConstMap< std::string, int > InterpType
Interpolation type map for option processing.
struct mxArray_tag mxArray
Forward declaration for mxArray.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
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.