35 nargchk(nrhs>=2 && (nrhs%2)==0 && nlhs<=1);
45 for (
int i=2; i<nrhs; i+=2) {
46 string key(rhs[i].toString());
49 else if (key ==
"Sigma")
50 sigma = rhs[i+1].toDouble();
51 else if (key ==
"WeightType")
53 else if (key ==
"Mask")
54 mask = rhs[i+1].toMat(
CV_8U);
57 "Unrecognized option %s", key.
c_str());
65 r, sigma, weightType, mask);
struct mxArray_tag mxArray
Forward declaration for mxArray.
void weightedMedianFilter(InputArray joint, InputArray src, OutputArray dst, int r, double sigma=25.5, int weightType=WMF_EXP, InputArray mask=noArray())
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.
std::map wrapper with one-line initialization and lookup method.