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.

ocvCvBox2DToMxArray

Convert OpenCV CvBox2D to a MATLAB struct

C++ Syntax

#include "opencvmex.hpp"
mxArray *ocvCvBox2DToMxArray(const CvBox2D *in);

Arguments

in

Pointer to OpenCV CvBox2D.

Returns

Pointer to a MATLAB® structure, mxArray, that represents a rectangle. The structure must have five scalar-valued fields: x_center, y_center, width, height, and angle. The (x_center, y_center) fields represent the center of the rectangle.

Description

The ocvCvBox2DToMxArray function converts a rectangle data structure from an OpenCV CvBox2D to a MATLAB struct.

Introduced in R2015a