Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Class implementing processing of arbitrary data sets for GPU Image Processing. More...
#include <mitkOclDataSet.h>
Public Member Functions | |
mitkClassMacro (OclDataSet, OclBaseData) | |
Pointer | Clone () const |
virtual int | TransferDataToGPU (cl_command_queue) |
Copies the RAM-stored data to GMEM. More... | |
virtual void * | TransferDataToCPU (cl_command_queue) |
Copies the in GMEM stored data to RAM. More... | |
void * | GetData () |
Returns the pointer to the referenced data. More... | |
cl_mem | GetGPUBuffer () |
cl_mem | CreateGPUBuffer () |
bool | IsModified (int _type) |
Returns the status of the image buffer. More... | |
void | Modified (int _type) |
Set the modified flag for one of the buffers. More... | |
void | SetData (void *data) |
Initialze the OclDataSet with data. More... | |
size_t | GetBufferSize () const |
returns the amount of elements in the DataSet More... | |
short | GetBytesPerElement () const |
void | SetBufferSize (size_t size) |
Set the amount of elements in buffer. More... | |
void | SetBpE (unsigned short BpE) |
Set the DataSet memory Size per Element in Bytes. More... | |
Public Member Functions inherited from mitk::OclBaseData | |
mitkClassMacroItkParent (OclBaseData, itk::Object) | |
void | GPUModified () |
Set the modified flag for one of the GPU buffer. More... | |
void | CPUModified () |
Set the modified flag for one of the CPU buffer. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
OclDataSet () | |
Constructor. More... | |
virtual | ~OclDataSet () |
Destructor. More... | |
Protected Member Functions inherited from mitk::OclBaseData | |
OclBaseData () | |
Default constructor. More... | |
virtual | ~OclBaseData () |
Default destructor. More... | |
Protected Attributes | |
cl_mem | m_gpuBuffer |
cl_context | m_context |
Class implementing processing of arbitrary data sets for GPU Image Processing.
The class holds a pointer to the data stored in RAM and performs an on-demand-copy to the graphics memory. It is the basic data structure for all mitk::oclDataSetToDataSetFilter classes
Definition at line 36 of file mitkOclDataSet.h.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
Pointer mitk::OclDataSet::Clone | ( | ) | const |
cl_mem mitk::OclDataSet::CreateGPUBuffer | ( | ) |
Create the GPU buffer for image
|
inline |
returns the amount of elements in the DataSet
Definition at line 86 of file mitkOclDataSet.h.
|
inline |
Definition at line 91 of file mitkOclDataSet.h.
|
inline |
Returns the pointer to the referenced data.
Definition at line 50 of file mitkOclDataSet.h.
|
virtual |
Returns the pointer to the GPU buffer
Reimplemented from mitk::OclBaseData.
bool mitk::OclDataSet::IsModified | ( | int | _type | ) |
Returns the status of the image buffer.
_type | The flag to specify the buffer type ( GPU / CPU ) |
mitk::OclDataSet::mitkClassMacro | ( | OclDataSet | , |
OclBaseData | |||
) |
void mitk::OclDataSet::Modified | ( | int | _type | ) |
Set the modified flag for one of the buffers.
_type | The flag to specify the buffer type ( GPU / CPU ) |
|
static |
void mitk::OclDataSet::SetBpE | ( | unsigned short | BpE | ) |
Set the DataSet memory Size per Element in Bytes.
void mitk::OclDataSet::SetBufferSize | ( | size_t | size | ) |
Set the amount of elements in buffer.
|
inline |
Initialze the OclDataSet with data.
Definition at line 78 of file mitkOclDataSet.h.
|
virtual |
Copies the in GMEM stored data to RAM.
Implements mitk::OclBaseData.
|
virtual |
Copies the RAM-stored data to GMEM.
Implements mitk::OclBaseData.
|
protected |
GPU Context the Buffer was created in, needed for access
Definition at line 113 of file mitkOclDataSet.h.
|
protected |
GMEM Image buffer
Definition at line 110 of file mitkOclDataSet.h.