vigra - Accessors for OpenCL types

[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

| Accessors for OpenCL types Data Accessors |

## Classes
class | cl_charNAccessor_COMP
class | cl_TYPE3WriteAccessor_s1
class | cl_TYPE3WriteAccessor_s2

## Detailed Description

Encapsulate access to members of OpenCL vector types.

#include <vigra/multi_opencl.hxx>

OpenCL 1.1 [6.1.7] - Vector Components

- cl_TYPE2Accessor_x
- cl_TYPE2Accessor_y
- cl_TYPE2Accessor_s0
- cl_TYPE2Accessor_s1
- cl_TYPE2WriteAccessor_x
- cl_TYPE2WriteAccessor_y
- cl_TYPE2WriteAccessor_s0
- cl_TYPE2WriteAccessor_s1
- cl_TYPE3Accessor_x
- cl_TYPE3Accessor_y
- cl_TYPE3Accessor_z
- cl_TYPE3Accessor_s0
- cl_TYPE3Accessor_s1
- cl_TYPE3Accessor_s2
- cl_TYPE3WriteAccessor_x
- cl_TYPE3WriteAccessor_y
- cl_TYPE3WriteAccessor_z
- cl_TYPE3WriteAccessor_s0
- cl_TYPE3WriteAccessor_s1
- ...

where TYPE is one of {char, uchar, short, ushort, int, uint, long, ulong, float, double }

For example:

#include <vigra/multi_opencl.hxx>
MultiArrayView<2, cl_double3 > dataView = ...;
vigra::FindMinMax<double> minmax;
vigra::inspectMultiArray(srcMultiArrayRange(dataView, cl_double3Accessor_z()), minmax);
std::cout << "range of .z: " << minmax.min << " - " << minmax.max;

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.11.0 (Fri May 19 2017)