mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
anonymous_namespace{Utils_.cpp} Namespace Reference

Functions

MxArray toMxArray (size_t i)
 Convert size type to MxArray. More...
 
MxArray toMxArray (const std::vector< size_t > &v)
 Convert vector of size type to MxArray. More...
 
MxArray toFPConfigStruct (int flags)
 Convert OpenCL FP config bit-field to MxArray. More...
 
MxArray toExecCapStruct (int flags)
 Convert OpenCL execution capabilities bit-field to MxArray. More...
 
MxArray toStruct (const vector< cv::ocl::PlatformInfo > &vpi)
 Convert OpenCL platform info vector to struct array. More...
 
MxArray toStruct (const cv::cuda::DeviceInfo &di)
 Convert CUDA device info to struct array. More...
 

Variables

const ConstMap< int, stringOCLTypeMap
 OpenCL device type. More...
 
const ConstMap< int, stringOCLCacheMap
 OpenCL type of global memory cache. More...
 
const ConstMap< int, stringOCLMemMap
 OpenCL type of local memory. More...
 
const ConstMap< int, stringOCLVendorMap
 OpenCL vendor name. More...
 
const ConstMap< int, stringCUDAComputeModeMap
 CUDA device compute modes. More...
 

Function Documentation

◆ toExecCapStruct()

MxArray anonymous_namespace{Utils_.cpp}::toExecCapStruct ( int  flags)

Convert OpenCL execution capabilities bit-field to MxArray.

Parameters
flagsint value.
Returns
MxArray object, a scalar struct.

Definition at line 105 of file Utils_.cpp.

◆ toFPConfigStruct()

MxArray anonymous_namespace{Utils_.cpp}::toFPConfigStruct ( int  flags)

Convert OpenCL FP config bit-field to MxArray.

Parameters
flagsint value.
Returns
MxArray object, a scalar struct.

Definition at line 84 of file Utils_.cpp.

◆ toMxArray() [1/2]

MxArray anonymous_namespace{Utils_.cpp}::toMxArray ( size_t  i)

Convert size type to MxArray.

Parameters
ivalue.
Returns
MxArray object, a scalar uint64 array.

Definition at line 22 of file Utils_.cpp.

◆ toMxArray() [2/2]

MxArray anonymous_namespace{Utils_.cpp}::toMxArray ( const std::vector< size_t > &  v)

Convert vector of size type to MxArray.

Parameters
vvector.
Returns
MxArray object, a vector uint64 array.

Definition at line 35 of file Utils_.cpp.

◆ toStruct() [1/2]

MxArray anonymous_namespace{Utils_.cpp}::toStruct ( const vector< cv::ocl::PlatformInfo > &  vpi)

Convert OpenCL platform info vector to struct array.

Parameters
vpivector of platform info
Returns
struct-array MxArray object

Definition at line 118 of file Utils_.cpp.

◆ toStruct() [2/2]

MxArray anonymous_namespace{Utils_.cpp}::toStruct ( const cv::cuda::DeviceInfo di)

Convert CUDA device info to struct array.

Parameters
didevice info object
Returns
scalar struct MxArray object

Definition at line 238 of file Utils_.cpp.

Variable Documentation

◆ CUDAComputeModeMap

const ConstMap<int,string> anonymous_namespace{Utils_.cpp}::CUDAComputeModeMap
Initial value:

CUDA device compute modes.

Definition at line 74 of file Utils_.cpp.

◆ OCLCacheMap

const ConstMap<int,string> anonymous_namespace{Utils_.cpp}::OCLCacheMap
Initial value:
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

OpenCL type of global memory cache.

Definition at line 55 of file Utils_.cpp.

◆ OCLMemMap

const ConstMap<int,string> anonymous_namespace{Utils_.cpp}::OCLMemMap
Initial value:
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

OpenCL type of local memory.

Definition at line 61 of file Utils_.cpp.

◆ OCLTypeMap

const ConstMap<int,string> anonymous_namespace{Utils_.cpp}::OCLTypeMap
Initial value:

OpenCL device type.

Definition at line 46 of file Utils_.cpp.

◆ OCLVendorMap

const ConstMap<int,string> anonymous_namespace{Utils_.cpp}::OCLVendorMap
Initial value:

OpenCL vendor name.

Definition at line 67 of file Utils_.cpp.