ocvMxGpuArrayFromGpuMat_{DataType}
Create an mxArray
from cv::gpu::GpuMat
object
C++ Syntax
Note
This function will be removed in a future release.
#include "opencvgpumex.hpp"
mxArray *
ocvMxGpuArrayFromGpuMat_double(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_single(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_uint8(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_uint16(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_uint32(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_int8(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_int16(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_int32(const cv::gpu::GpuMat & in);
mxArray *
ocvMxGpuArrayFromGpuMat_bool(const cv::gpu::GpuMat & in)
Arguments
in
Reference to OpenCV
cv::gpu::GpuMat
object.
Returns
Pointer to a MATLAB® struct, mxArray
, containing GPU data. Supported data
types:
real_T (double ) | real32_T (single ) | uint8_T (uint8 ) |
uint16_T (uint16 ) | uint32_T (uint32 ) | int8_T (int8 ) |
int16_T (int16 ) | int32_T (int32 ) | boolean_T (bool ) |
Description
The ocvMxGpuArrayFromGpuMat
function creates an mxArray
from a cv::gpu::GpuMat
object.
GpuMat
supports 2-D arrays only. This function requires the Parallel Computing Toolbox™ software.
See Also
mxArray
, ocvMxGpuArrayToGpuMat_{DataType}
, C Matrix API, Write C Functions Callable from MATLAB (MEX Files)
Version History
Introduced in R2015a