ocvCvRectToBoundingBox_{DataType}
Convert vector<cv::Rect>
to
M-by-4
mxArray
of bounding
boxes
C++ Syntax
#include "opencvmex.hpp"
mxArray *
ocvCvRectToBoundingBox_double(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_single(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_uint8(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_uint16(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_uint32(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_int8(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_int16(const
std::vector<cv::Rect> &
rects);
mxArray *
ocvCvRectToBoundingBox_int32(const
std::vector<cv::Rect> &
rects);
Arguments
rects
Reference to OpenCV
vector<cv::Rect>
.
Returns
Pointer to a MATLAB®
mxArray
having
M-by-4 elements. Supported data
types:
real_T
(double ) | uint8_T
(uint8 ) | uint32_T
(uint32 ) | int16_T
(int16 ) |
real32_T
(single ) | uint16_T
(uint16 ) | int8_T
(int8 ) | int32_T
(int32 ) |
Description
The ocvCvRectToBoundingBox_{DataType}
function converts
vector<cv::Rect>
to an
M-by-4 mxArray
of bounding boxes.
See Also
mxArray
, ocvCvBox2DToMxArray
, C Matrix API, Write C Functions Callable from MATLAB (MEX Files)
Version History
Introduced in R2015a