Medical Imaging Interaction Toolkit  2023.04.00
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 40 of file mitkOclImageFormats.h.

Constructor & Destructor Documentation

◆ OclImageFormats()

mitk::OclImageFormats::OclImageFormats ( )
protected

OclImageFormats Constructor.

◆ ~OclImageFormats()

virtual mitk::OclImageFormats::~OclImageFormats ( )
protectedvirtual

Destructor (default)

Member Function Documentation

◆ Clone()

Pointer mitk::OclImageFormats::Clone ( ) const

◆ CollectAvailableFormats()

void mitk::OclImageFormats::CollectAvailableFormats ( )
protected

Get and store all available infos.

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

◆ GetNearestSupported()

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.

◆ IsFormatSupported()

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.

◆ mitkClassMacroItkParent()

mitk::OclImageFormats::mitkClassMacroItkParent ( OclImageFormats  ,
itk::LightObject   
)

◆ New()

static Pointer mitk::OclImageFormats::New ( )
static

◆ SetGPUContext()

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.

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