15 (cv::INTERSECT_NONE,
"None")
16 (cv::INTERSECT_PARTIAL,
"Partial")
17 (cv::INTERSECT_FULL,
"Full");
27 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
33 vector<MxArray> rhs(prhs, prhs+nrhs);
36 RotatedRect rect1(rhs[0].toRotatedRect()),
37 rect2(rhs[1].toRotatedRect());
38 vector<Point2f> intersection;
39 int result = rotatedRectangleIntersection(rect1, rect2, intersection);
40 plhs[0] =
MxArray(intersection);
42 plhs[1] =
MxArray(RectIntersectInvMap[result]);
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
Global constant definitions.
std::map wrapper with one-line initialization and lookup method.