27 bool rect_variant = (rhs[0].numel() == 4);
30 Point pt1(rhs[1].toPoint()), pt2(rhs[2].toPoint());
33 inside =
clipLine(rhs[0].toSize(), pt1, pt2);
35 inside =
clipLine(rhs[0].toRect(), pt1, pt2);
struct mxArray_tag mxArray
Forward declaration for mxArray.
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
bool clipLine(Size imgSize, Point &pt1, Point &pt2)
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/output arguments number check.
Global constant definitions.