Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkOclImage_h
14 #define mitkOclImage_h
22 #include "MitkOpenCLExports.h"
31 #define SHORT_IM mitk::MakeScalarPixelType<short>()
32 #define FLOAT_IM mitk::MakeScalarPixelType<float>()
49 itkFactorylessNewMacro(Self);
53 virtual int TransferDataToGPU(cl_command_queue);
56 virtual void* TransferDataToCPU(cl_command_queue);
69 cl_mem GetGPUImage(cl_command_queue);
74 return this->m_gpuImage;
80 cl_mem CreateGPUImage(
unsigned int,
unsigned int,
unsigned int,
unsigned int);
86 bool IsModified(
int _type);
88 using OclBaseData::Modified;
93 void Modified(
int _type);
97 void InitializeMITKImage();
103 int GetDimension(
int)
const;
115 float GetSpacing(
int);
118 void GetOffset(
float*)
const;
122 void SetPixelType(
const cl_image_format*);
135 return &(this->m_proposedFormat);
139 void SetDimensions(
unsigned int* Dims);
142 void SetDimension(
unsigned short dim);
162 cl_image_format ConvertPixelTypeToOCLFormat();
170 unsigned short m_dim;
172 unsigned int* m_Dims;
174 unsigned short m_BpE;
176 cl_int AllocateGPUImage();
181 bool m_formatSupported;
184 cl_image_format m_supportedFormat;
187 cl_image_format m_proposedFormat;
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
Class implementing the image format for GPU Image Processing.
unsigned int m_bufferSize
The ImageTypeIsNotSupportedByGPU class specialized exception class for unsupported image formats....
unsigned int * GetDimensions()
returns the pointer to the array of image sizes
short GetBytesPerPixel() const
Find image slices visible on a given plane.
Image::Pointer GetMITKImage()
Returns the pointer to the referenced mitk::Image.
int GetDimension() const
returns the dimensionality of the image
const cl_image_format * GetPixelType() const
Get the currently used pixel type.
#define mitkExceptionClassMacro(ClassName, SuperClassName)
#define mitkClassMacro(className, SuperClassName)