Class implementing the image format for GPU Image Processing.
More...
#include <mitkOclImage.h>
Class implementing the image format for GPU Image Processing.
The class holds a pointer to the mitk::Image stored in RAM and performs an on-demand-copy to the graphics memory. It is the basic data structure for all mitk::oclImageToImageFilter classes
- Exceptions
-
Definition at line 45 of file mitkOclImage.h.
◆ OclImage()
mitk::OclImage::OclImage |
( |
| ) |
|
|
protected |
◆ ~OclImage()
virtual mitk::OclImage::~OclImage |
( |
| ) |
|
|
protectedvirtual |
◆ Clone()
Pointer mitk::OclImage::Clone |
( |
| ) |
const |
◆ CreateGPUImage()
cl_mem mitk::OclImage::CreateGPUImage |
( |
unsigned int |
, |
|
|
unsigned int |
, |
|
|
unsigned int |
, |
|
|
unsigned int |
|
|
) |
| |
Create the GPU buffer for image
◆ GetBytesPerPixel()
short mitk::OclImage::GetBytesPerPixel |
( |
| ) |
const |
|
inline |
◆ GetDimension() [1/2]
int mitk::OclImage::GetDimension |
( |
| ) |
const |
|
inline |
returns the dimensionality of the image
Definition at line 106 of file mitkOclImage.h.
◆ GetDimension() [2/2]
int mitk::OclImage::GetDimension |
( |
int |
| ) |
const |
returns the specified image dimension size
◆ GetDimensions()
unsigned int* mitk::OclImage::GetDimensions |
( |
| ) |
|
|
inline |
returns the pointer to the array of image sizes
Definition at line 112 of file mitkOclImage.h.
◆ GetGPUBuffer()
cl_mem mitk::OclImage::GetGPUBuffer |
( |
| ) |
|
|
inlinevirtual |
◆ GetGPUImage()
cl_mem mitk::OclImage::GetGPUImage |
( |
cl_command_queue |
| ) |
|
Checks whether gpuImage is a valid clImage object.
when an oclImage gets created by an image to image filter, the output image is created by clCreateBuffer() because it is not in general possible to write to clImage directly
◆ GetMITKImage()
◆ GetOffset()
void mitk::OclImage::GetOffset |
( |
float * |
| ) |
const |
Returns the image offset (needed for WorldToIndex Transform.
◆ GetPixelType()
const cl_image_format* mitk::OclImage::GetPixelType |
( |
| ) |
const |
|
inline |
Get the currently used pixel type.
- Returns
- OpenCL Image Format struct
Definition at line 133 of file mitkOclImage.h.
◆ GetSpacing()
float mitk::OclImage::GetSpacing |
( |
int |
| ) |
|
returns the spacing of the image for specified dimension
◆ InitializeByMitkImage()
Initialze the OclImage with an mitkImage.
◆ InitializeMITKImage()
void mitk::OclImage::InitializeMITKImage |
( |
| ) |
|
◆ IsModified()
bool mitk::OclImage::IsModified |
( |
int |
_type | ) |
|
Returns the status of the image buffer.
- Parameters
-
_type | The flag to specify the buffer type ( GPU / CPU ) |
◆ mitkClassMacro()
◆ Modified()
void mitk::OclImage::Modified |
( |
int |
_type | ) |
|
Set the modified flag for one of the buffers.
- Parameters
-
_type | The flag to specify the buffer type ( GPU / CPU ) |
◆ New()
static Pointer mitk::OclImage::New |
( |
| ) |
|
|
static |
◆ SetDimension()
void mitk::OclImage::SetDimension |
( |
unsigned short |
dim | ) |
|
Set the dimensionality of the image.
◆ SetDimensions()
void mitk::OclImage::SetDimensions |
( |
unsigned int * |
Dims | ) |
|
Set the image dimensions through an unsigned int array.
◆ SetPixelType()
void mitk::OclImage::SetPixelType |
( |
const cl_image_format * |
| ) |
|
Set the pixel type for the image to be used.
◆ TransferDataToCPU()
virtual void* mitk::OclImage::TransferDataToCPU |
( |
cl_command_queue |
| ) |
|
|
virtual |
◆ TransferDataToGPU()
virtual int mitk::OclImage::TransferDataToGPU |
( |
cl_command_queue |
| ) |
|
|
virtual |
◆ m_bufferSize
unsigned int mitk::OclImage::m_bufferSize |
|
protected |
◆ m_context
cl_context mitk::OclImage::m_context |
|
protected |
◆ m_gpuImage
cl_mem mitk::OclImage::m_gpuImage |
|
protected |
The documentation for this class was generated from the following file: