23 nargchk(nrhs>=1 && (nrhs%2)==1 && nlhs<=1);
35 double max_theta =
CV_PI/2;
36 double theta_step =
CV_PI/180;
37 for (
int i=1; i<nrhs; i+=2) {
38 string key(rhs[i].toString());
39 if (key ==
"LinesMax")
40 lines_max = rhs[i+1].toInt();
41 else if (key ==
"Threshold")
43 else if (key ==
"RhoMin")
44 min_rho = rhs[i+1].toDouble();
45 else if (key ==
"RhoMax")
46 max_rho = rhs[i+1].toDouble();
47 else if (key ==
"RhoStep")
48 rho_step = rhs[i+1].toDouble();
49 else if (key ==
"ThetaMin")
50 min_theta = rhs[i+1].toDouble();
51 else if (key ==
"ThetaMax")
52 max_theta = rhs[i+1].toDouble();
53 else if (key ==
"ThetaStep")
54 theta_step = rhs[i+1].toDouble();
57 "Unrecognized option %s", key.
c_str());
64 min_rho, max_rho, rho_step, min_theta, max_theta, theta_step);
struct mxArray_tag mxArray
Forward declaration for mxArray.
void HoughLinesPointSet(InputArray _point, OutputArray _lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)
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.
double threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type)
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.