24     nargchk(nrhs>=1 && (nrhs%2)==1 && nlhs<=1);
    31     double sigmaColor = 25.0;
    32     double sigmaSpace = 3.0;
    35     for (
int i=1; i<nrhs; i+=2) {
    36         string key(rhs[i].toString());
    37         if (key == 
"Diameter")
    39         else if (key == 
"SigmaColor")
    40             sigmaColor = rhs[i+1].toDouble();
    41         else if (key == 
"SigmaSpace")
    42             sigmaSpace = rhs[i+1].toDouble();
    43         else if (key == 
"NumIter")
    44             numOfIter = rhs[i+1].toInt();
    45         else if (key == 
"BorderType")
    49                 "Unrecognized option %s", key.
c_str());
    56         d, sigmaColor, sigmaSpace, numOfIter, borderType);
 
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. 
 
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab. 
 
Global constant definitions. 
 
void rollingGuidanceFilter(InputArray src, OutputArray dst, int d=-1, double sigmaColor=25, double sigmaSpace=3, int numOfIter=4, int borderType=BORDER_DEFAULT)