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.

ocvMxGpuArrayFromGpuMat_{DataType}

Create an mxArray from cv::gpu::GpuMat object

C++ Syntax

#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.

Introduced in R2015a