32 nargchk(nrhs>=1 && (nrhs%2)==1 && nlhs<=1);
42 double minDist = image.
rows/8;
47 for (
int i=1; i<nrhs; i+=2) {
48 string key(rhs[i].toString());
52 dp = rhs[i+1].toDouble();
53 else if (key ==
"MinDist")
54 minDist = rhs[i+1].toDouble();
55 else if (key ==
"Param1")
56 param1 = rhs[i+1].toDouble();
57 else if (key ==
"Param2")
58 param2 = rhs[i+1].toDouble();
59 else if (key ==
"MinRadius")
60 minRadius = rhs[i+1].toInt();
61 else if (key ==
"MaxRadius")
62 maxRadius = rhs[i+1].toInt();
65 "Unrecognized option %s", key.
c_str());
71 param1, param2, minRadius, maxRadius);
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...
void HoughCircles(InputArray image, OutputArray circles, int method, double dp, double minDist, double param1=100, double param2=100, int minRadius=0, int maxRadius=0)
const ConstMap< string, int > HoughModesMap
Hough transform modes 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.
std::map wrapper with one-line initialization and lookup method.