48 nargchk(nrhs>=2 && (nrhs%2)==0 && nlhs<=1);
57 for (
int i=2; i<nrhs; i+=2) {
58 string key(rhs[i].toString());
59 if (key ==
"AngleRange")
61 else if (key ==
"MakeSkew")
63 else if (key ==
"Rules")
67 "Unrecognized option %s", key.
c_str());
71 Point houghPoint(rhs[0].toPoint());
const ConstMap< string, int > RulesOptionMap
Option values hough transform rules options.
struct mxArray_tag mxArray
Forward declaration for mxArray.
Vec4i HoughPoint2Line(const Point &houghPoint, InputArray srcImgInfo, int angleRange=ARO_315_135, int makeSkew=HDO_DESKEW, int rules=RO_IGNORE_BORDERS)
const ConstMap< string, int > AngleRangeOptionMap
Option values hough transform angle range options.
void line(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)
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.
const ConstMap< string, int > HoughDeskewOptionMap
Option values hough transform deskew options.
std::map wrapper with one-line initialization and lookup method.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.