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.

ocvMxGpuArrayToGpuMat_{DataType}

Create cv::gpu::GpuMat from mxArray containing GPU data

C++ Syntax

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

Introduced in R2015a