Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Introduced in R2015a