Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::OclImageFormats Class Reference

#include <mitkOclImageFormats.h>

Inheritance diagram for mitk::OclImageFormats:
Collaboration diagram for mitk::OclImageFormats:

Public Member Functions

 mitkClassMacroItkParent (OclImageFormats, itk::LightObject)
 
Pointer Clone () const
 
bool IsFormatSupported (cl_image_format *format)
 Checks if format supported. More...
 
bool GetNearestSupported (cl_image_format *inputformat, cl_image_format *outputformat)
 Finds one supported image format similar to the given format. More...
 
void SetGPUContext (cl_context context)
 SetGPUContext Set the GPU context. Must be called before using this class! More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void CollectAvailableFormats ()
 Get and store all available infos. More...
 
 OclImageFormats ()
 OclImageFormats Constructor. More...
 
virtual ~OclImageFormats ()
 Destructor (default) More...
 

Detailed Description

Definition at line 44 of file mitkOclImageFormats.h.

Constructor & Destructor Documentation

mitk::OclImageFormats::OclImageFormats ( )
protected

OclImageFormats Constructor.

Definition at line 19 of file mitkOclImageFormats.cpp.

References MAX_DATA_TYPES, and MAX_FORMATS.

mitk::OclImageFormats::~OclImageFormats ( )
protectedvirtual

Destructor (default)

Definition at line 36 of file mitkOclImageFormats.cpp.

Member Function Documentation

Pointer mitk::OclImageFormats::Clone ( ) const
void mitk::OclImageFormats::CollectAvailableFormats ( )
protected

Get and store all available infos.

Exceptions
Throwsan mitk::Exception if the GPU context was not defined.

Definition at line 210 of file mitkOclImageFormats.cpp.

References CHECK_OCL_ERR, and mitkThrow.

bool mitk::OclImageFormats::GetNearestSupported ( cl_image_format *  inputformat,
cl_image_format *  outputformat 
)

Finds one supported image format similar to the given format.

In case the input format is supported, the output format will contain the same value.

Parameters
inputformatThe (unsupported) image format
outputformatA supported image format
Returns
True if a supported format was changed.

Definition at line 157 of file mitkOclImageFormats.cpp.

bool mitk::OclImageFormats::IsFormatSupported ( cl_image_format *  format)

Checks if format supported.

Parameters
formatThe image format to be checked for support.
Returns
True if the parameter is supported.

Definition at line 145 of file mitkOclImageFormats.cpp.

mitk::OclImageFormats::mitkClassMacroItkParent ( OclImageFormats  ,
itk::LightObject   
)
static Pointer mitk::OclImageFormats::New ( )
static
void mitk::OclImageFormats::SetGPUContext ( cl_context  context)

SetGPUContext Set the GPU context. Must be called before using this class!

Parameters
contextGPU context in cl format.

Definition at line 187 of file mitkOclImageFormats.cpp.


The documentation for this class was generated from the following files: