Convert a MATLAB struct representing a rectangle
to an OpenCV CvRect
#include "opencvmex.hpp"
CvRect ocvMxArrayToCvRect(const
mxArray *in);
in
Pointer to a MATLAB® structure, mxArray
, that represents a rectangle.
The structure must have four scalar-valued fields: x
, y
, width
,
and height
. The (x
, y
)
fields represent the upper-left corner of the rectangle.
OpenCV CvRect
.
The ocvMxArrayToCvRect
function converts
a rectangle data structure from a MATLAB struct to an OpenCV
KeyPoint vector.