ocvMxGpuArrayToGpuMat_{DataType}
Create cv::gpu::GpuMat
from mxArray
containing GPU data.
C++ Syntax
Note
This function will be removed in a future release.
#include
"opencvgpumex.hpp"
cv::Ptr<cv::gpu::GpuMat>
ocvMxGpuArrayToGpuMat_double(const mxArray *
in);
cv::Ptr<cv::gpu::GpuMat> ocvMxGpuArrayToGpuMat_single(const
mxArray * in);
cv::Ptr<cv::gpu::GpuMat>
ocvMxGpuArrayToGpuMat_uint8(const mxArray *
in);
cv::Ptr<cv::gpu::GpuMat> ocvMxGpuArrayToGpuMat_uint16(const
mxArray * in);
cv::Ptr<cv::gpu::GpuMat>
ocvMxGpuArrayToGpuMat_uint32(const mxArray *
in);
cv::Ptr<cv::gpu::GpuMat> ocvMxGpuArrayToGpuMat_int8(const
mxArray * in);
cv::Ptr<cv::gpu::GpuMat>
ocvMxGpuArrayToGpuMat_int16(const mxArray *
in);
cv::Ptr<cv::gpu::GpuMat> ocvMxGpuArrayToGpuMat_int32(const
mxArray * in);
cv::Ptr<cv::gpu::GpuMat>
ocvMxGpuArrayToGpuMat_bool(const mxArray * in);
Arguments
in
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
)
Returns
OpenCV smart pointer (cv::Ptr
) to a cv::gpu::GpuMat
object.
Description
The ocvMxGpuArrayToGpuMat_{DataType}
function creates a
cv::gpu::GpuMat
object from an mxArray
containing GPU data. This function requires the Parallel Computing Toolbox™ software.
See Also
mxArray
, ocvMxGpuArrayFromGpuMat_{DataType}
, C Matrix API, Write C Functions Callable from MATLAB (MEX Files)
Version History
Introduced in R2015a