This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

ocvMxArrayFromVector

Convert numeric vectorT to mxArray

C++ Syntax

#include "opencvmex.hpp"
mxArray *ocvMxArrayFromVector(const std::vector<real_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<real32_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<uint8_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<uint16_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<uint32_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<int8_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<int16_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<int32_T> &v);
mxArray *ocvMxArrayFromVector(const std::vector<boolean_T> &v);

Arguments

v

Reference to vector<DataType>. Supported data types:

real_Treal32_Tuint8_T
uint16_Tuint32_Tint8_T
int16_Tint32_Tboolean_T

Returns

Pointer to a MATLAB® struct mxArray.

Description

The ocvMxArrayFromVector function converts numeric std::vector<DataType> to an mxArray.

See Also

mxArray, C Matrix API (MATLAB), C MEX File Applications (MATLAB)

Introduced in R2015a