ITK
6.0.0
Insight Toolkit
|
#include <itkGPUImageDataManager.h>
DataManager for GPUImage. This class will take care of data synchronization between CPU Image and GPU Image.
Definition at line 45 of file itkGPUImageDataManager.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = GPUImageDataManager |
using | Superclass = GPUDataManager |
Public Types inherited from itk::GPUDataManager | |
using | ConstPointer = SmartPointer< const Self > |
using | MutexHolderType = std::lock_guard< std::mutex > |
using | Pointer = SmartPointer< Self > |
using | Self = GPUDataManager |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
ImageType * | GetImagePointer () |
virtual GPUDataManager * | GetModifiableGPUBufferedRegionIndex () |
virtual GPUDataManager * | GetModifiableGPUBufferedRegionSize () |
const char * | GetNameOfClass () const override |
virtual void | MakeCPUBufferUpToDate () |
virtual void | MakeGPUBufferUpToDate () |
void | SetImagePointer (ImageType *img) |
Public Member Functions inherited from itk::GPUDataManager | |
void | Allocate () |
unsigned int | GetBufferSize () const |
void * | GetCPUBufferPointer () |
int | GetCurrentCommandQueueID () const |
cl_mem * | GetGPUBufferPointer () |
const char * | GetNameOfClass () const override |
virtual void | Graft (const GPUDataManager *data) |
virtual void | Initialize () |
bool | IsCPUBufferDirty () const |
bool | IsGPUBufferDirty () const |
void | SetBufferFlag (cl_mem_flags flags) |
void | SetBufferSize (unsigned int num) |
void | SetCPUBufferDirty () |
void | SetCPUBufferPointer (void *ptr) |
void | SetCPUDirtyFlag (bool isDirty) |
void | SetCurrentCommandQueue (int queueid) |
void | SetGPUBufferDirty () |
void | SetGPUDirtyFlag (bool isDirty) |
bool | Update () |
virtual void | UpdateCPUBuffer () |
virtual void | UpdateGPUBuffer () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
const char * | GetNameOfClass () const override |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual Pointer | CreateAnother () const |
virtual void | Delete () |
virtual const char * | GetNameOfClass () const |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Register () const |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const noexcept |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::GPUDataManager | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = ImageType::ImageDimension |
Protected Member Functions | |
GPUImageDataManager ()=default | |
~GPUImageDataManager () override=default | |
Protected Member Functions inherited from itk::GPUDataManager | |
GPUDataManager () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~GPUDataManager () override | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
int | m_BufferedRegionIndex [ImageType::ImageDimension] {} |
int | m_BufferedRegionSize [ImageType::ImageDimension] {} |
GPUDataManager::Pointer | m_GPUBufferedRegionIndex {} |
GPUDataManager::Pointer | m_GPUBufferedRegionSize {} |
WeakPointer< ImageType > | m_Image {} |
Friends | |
class | GPUImage< typename ImageType::PixelType, ImageType::ImageDimension > |
class | GPUKernelManager |
Additional Inherited Members | |
Protected Attributes inherited from itk::GPUDataManager | |
unsigned int | m_BufferSize {} |
int | m_CommandQueueId {} |
GPUContextManager * | m_ContextManager {} |
void * | m_CPUBuffer {} |
cl_mem | m_GPUBuffer {} |
bool | m_IsCPUBufferDirty {} |
bool | m_IsGPUBufferDirty {} |
cl_mem_flags | m_MemFlags {} |
std::mutex | m_Mutex {} |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::GPUImageDataManager< ImageType >::ConstPointer = SmartPointer<const Self> |
Definition at line 57 of file itkGPUImageDataManager.h.
using itk::GPUImageDataManager< ImageType >::Pointer = SmartPointer<Self> |
Definition at line 56 of file itkGPUImageDataManager.h.
using itk::GPUImageDataManager< ImageType >::Self = GPUImageDataManager |
Definition at line 54 of file itkGPUImageDataManager.h.
using itk::GPUImageDataManager< ImageType >::Superclass = GPUDataManager |
Definition at line 55 of file itkGPUImageDataManager.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inline |
Definition at line 71 of file itkGPUImageDataManager.h.
References itk::SmartPointer< TObjectType >::GetPointer().
|
virtual |
|
virtual |
|
overridevirtual |
Reimplemented from itk::GPUDataManager.
|
virtual |
actual GPU->CPU memory copy takes place here
|
virtual |
actual CPU->GPU memory copy takes place here
|
static |
void itk::GPUImageDataManager< ImageType >::SetImagePointer | ( | ImageType * | img | ) |
|
friend |
Definition at line 48 of file itkGPUImageDataManager.h.
|
friend |
Definition at line 48 of file itkGPUImageDataManager.h.
|
staticconstexpr |
Definition at line 62 of file itkGPUImageDataManager.h.
|
private |
Definition at line 91 of file itkGPUImageDataManager.h.
|
private |
Definition at line 92 of file itkGPUImageDataManager.h.
|
private |
Definition at line 93 of file itkGPUImageDataManager.h.
|
private |
Definition at line 94 of file itkGPUImageDataManager.h.
|
private |
Definition at line 89 of file itkGPUImageDataManager.h.