|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkOclImageFormats.h>


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... | |
Definition at line 40 of file mitkOclImageFormats.h.
|
protected |
OclImageFormats Constructor.
Definition at line 15 of file mitkOclImageFormats.cpp.
References MAX_DATA_TYPES, and MAX_FORMATS.
|
protectedvirtual |
Destructor (default)
Definition at line 32 of file mitkOclImageFormats.cpp.
References MAX_DATA_TYPES, MAX_FORMATS, MITK_INFO, and offset.
| Pointer mitk::OclImageFormats::Clone | ( | ) | const |
|
protected |
Get and store all available infos.
| Throws | an mitk::Exception if the GPU context was not defined. |
Definition at line 206 of file mitkOclImageFormats.cpp.
References CHECK_OCL_ERR, and mitkThrow.
Referenced by SetGPUContext().
| 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.
| inputformat | The (unsupported) image format |
| outputformat | A supported image format |
Definition at line 153 of file mitkOclImageFormats.cpp.
References IsFormatSupported().
| bool mitk::OclImageFormats::IsFormatSupported | ( | cl_image_format * | format | ) |
Checks if format supported.
| format | The image format to be checked for support. |
Definition at line 141 of file mitkOclImageFormats.cpp.
Referenced by GetNearestSupported().
| mitk::OclImageFormats::mitkClassMacroItkParent | ( | OclImageFormats | , |
| itk::LightObject | |||
| ) |
|
static |
| void mitk::OclImageFormats::SetGPUContext | ( | cl_context | context | ) |
SetGPUContext Set the GPU context. Must be called before using this class!
| context | GPU context in cl format. |
Definition at line 183 of file mitkOclImageFormats.cpp.
References CollectAvailableFormats().