ocvMxArrayToCvRect
Convert a MATLAB struct representing a rectangle to an
OpenCV CvRect
C++ Syntax
#include "opencvmex.hpp"
CvRect ocvMxArrayToCvRect(const
mxArray *in);
Arguments
inPointer to a MATLAB® structure,
mxArray, that represents a rectangle. The structure must have four scalar-valued fields:x,y,width, andheight. The (x,y) fields represent the upper-left corner of the rectangle.
Returns
OpenCV CvRect.
Description
The ocvMxArrayToCvRect function converts
a rectangle data structure from a MATLAB struct to an OpenCV KeyPoint
vector.
See Also
mxArray, ocvCvRectToMxArray, C Matrix API, Write C Functions Callable from MATLAB (MEX Files)
Version History
Introduced in R2015a