Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkGPUImage.h>
Templated n-dimensional image class for the GPU.
Derived from itk Image class to use with GPU image filters. This class manages both CPU and GPU memory implicitly, and can be used with non-GPU itk filters as well. Memory transfer between CPU and GPU is done automatically and implicitly.
DataManager for GPUImage. This class will take care of data synchronization between CPU Image and GPU Image.
Definition at line 63 of file itkGPUImage.h.
Public Types | |
typedef DefaultPixelAccessorFunctor< Self > | AccessorFunctorType |
typedef Superclass::AccessorType | AccessorType |
typedef SmartPointer< const Self > | ConstPointer |
typedef WeakPointer< const Self > | ConstWeakPointer |
typedef Superclass::DirectionType | DirectionType |
typedef Superclass::IndexType | IndexType |
typedef Superclass::InternalPixelType | InternalPixelType |
typedef Superclass::IOPixelType | IOPixelType |
typedef NeighborhoodAccessorFunctor< Self > | NeighborhoodAccessorFunctorType |
typedef Superclass::OffsetType | OffsetType |
typedef Superclass::PixelContainer | PixelContainer |
typedef PixelContainer::ConstPointer | PixelContainerConstPointer |
typedef PixelContainer::Pointer | PixelContainerPointer |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::RegionType | RegionType |
typedef GPUImage | Self |
typedef Superclass::SizeType | SizeType |
typedef Superclass::SpacingType | SpacingType |
typedef Image< TPixel, VImageDimension > | Superclass |
typedef Superclass::ValueType | ValueType |
Public Member Functions | |
void | Allocate (bool initialize=false) override |
void | AllocateGPU (void) |
void | DataHasBeenGenerated (void) |
void | FillBuffer (const TPixel &value) |
TPixel * | GetBufferPointer (void) |
const TPixel * | GetBufferPointer (void) const |
virtual const char * | GetClassName () const |
int | GetCurrentCommandQueueId (void) |
GPUDataManager::Pointer | GetGPUDataManager (void) const |
virtual const DirectionType & | GetIndexToPhysicalPoint () |
NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor (void) |
const NeighborhoodAccessorFunctorType | GetNeighborhoodAccessor (void) const |
virtual const DirectionType & | GetPhysicalPointToIndex () |
TPixel & | GetPixel (const IndexType &index) |
const TPixel & | GetPixel (const IndexType &index) const |
AccessorType | GetPixelAccessor (void) |
const AccessorType | GetPixelAccessor (void) const |
PixelContainer * | GetPixelContainer (void) |
const PixelContainer * | GetPixelContainer (void) const |
virtual void | Graft (const DataObject *data) |
void | GraftITKImage (const DataObject *data) |
virtual void | Initialize (void) |
itkStaticConstMacro (ImageDimension, unsigned int, VImageDimension) | |
virtual void | Modified (void) const |
TPixel & | operator[] (const IndexType &index) |
const TPixel & | operator[] (const IndexType &index) const |
void | SetCurrentCommandQueue (int queueid) |
void | SetPixel (const IndexType &index, const TPixel &value) |
void | SetPixelContainer (PixelContainer *container) |
void | UpdateBuffers (void) |
void | UpdateCPUBuffer (void) |
void | UpdateGPUBuffer (void) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
GPUImage () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~GPUImage () |
Private Member Functions | |
GPUImage (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
GPUImageDataManager< GPUImage >::Pointer | m_DataManager |
bool | m_Graft |
typedef DefaultPixelAccessorFunctor< Self > itk::GPUImage< TPixel, VImageDimension >::AccessorFunctorType |
Definition at line 94 of file itkGPUImage.h.
typedef Superclass::AccessorType itk::GPUImage< TPixel, VImageDimension >::AccessorType |
Definition at line 92 of file itkGPUImage.h.
typedef SmartPointer< const Self > itk::GPUImage< TPixel, VImageDimension >::ConstPointer |
Definition at line 70 of file itkGPUImage.h.
typedef WeakPointer< const Self > itk::GPUImage< TPixel, VImageDimension >::ConstWeakPointer |
Definition at line 71 of file itkGPUImage.h.
typedef Superclass::DirectionType itk::GPUImage< TPixel, VImageDimension >::DirectionType |
Definition at line 83 of file itkGPUImage.h.
typedef Superclass::IndexType itk::GPUImage< TPixel, VImageDimension >::IndexType |
Definition at line 87 of file itkGPUImage.h.
typedef Superclass::InternalPixelType itk::GPUImage< TPixel, VImageDimension >::InternalPixelType |
Definition at line 81 of file itkGPUImage.h.
typedef Superclass::IOPixelType itk::GPUImage< TPixel, VImageDimension >::IOPixelType |
Definition at line 82 of file itkGPUImage.h.
typedef NeighborhoodAccessorFunctor< Self > itk::GPUImage< TPixel, VImageDimension >::NeighborhoodAccessorFunctorType |
Definition at line 96 of file itkGPUImage.h.
typedef Superclass::OffsetType itk::GPUImage< TPixel, VImageDimension >::OffsetType |
Definition at line 88 of file itkGPUImage.h.
typedef Superclass::PixelContainer itk::GPUImage< TPixel, VImageDimension >::PixelContainer |
Definition at line 85 of file itkGPUImage.h.
typedef PixelContainer::ConstPointer itk::GPUImage< TPixel, VImageDimension >::PixelContainerConstPointer |
Definition at line 91 of file itkGPUImage.h.
typedef PixelContainer::Pointer itk::GPUImage< TPixel, VImageDimension >::PixelContainerPointer |
Definition at line 90 of file itkGPUImage.h.
typedef SmartPointer< Self > itk::GPUImage< TPixel, VImageDimension >::Pointer |
Definition at line 69 of file itkGPUImage.h.
typedef Superclass::RegionType itk::GPUImage< TPixel, VImageDimension >::RegionType |
Definition at line 89 of file itkGPUImage.h.
typedef GPUImage itk::GPUImage< TPixel, VImageDimension >::Self |
Definition at line 67 of file itkGPUImage.h.
typedef Superclass::SizeType itk::GPUImage< TPixel, VImageDimension >::SizeType |
Definition at line 86 of file itkGPUImage.h.
typedef Superclass::SpacingType itk::GPUImage< TPixel, VImageDimension >::SpacingType |
Definition at line 84 of file itkGPUImage.h.
typedef Image< TPixel, VImageDimension > itk::GPUImage< TPixel, VImageDimension >::Superclass |
Definition at line 68 of file itkGPUImage.h.
typedef Superclass::ValueType itk::GPUImage< TPixel, VImageDimension >::ValueType |
Definition at line 80 of file itkGPUImage.h.
|
protected |
|
inlineprotectedvirtual |
Definition at line 227 of file itkGPUImage.h.
|
private |
|
override |
Allocate CPU and GPU memory space
void itk::GPUImage< TPixel, VImageDimension >::AllocateGPU | ( | void | ) |
|
inline |
Override DataHasBeenGenerated() in DataObject class. We need this because CPU time stamp is always bigger than GPU's. That is because Modified() is called at the end of each filter in the pipeline so although we increment GPU's time stamp in GPUGenerateData() the CPU's time stamp will be increased after that.
Definition at line 199 of file itkGPUImage.h.
void itk::GPUImage< TPixel, VImageDimension >::FillBuffer | ( | const TPixel & | value | ) |
TPixel * itk::GPUImage< TPixel, VImageDimension >::GetBufferPointer | ( | void | ) |
Get CPU buffer pointer
const TPixel * itk::GPUImage< TPixel, VImageDimension >::GetBufferPointer | ( | void | ) | const |
|
virtual |
|
inline |
Definition at line 184 of file itkGPUImage.h.
GPUDataManager::Pointer itk::GPUImage< TPixel, VImageDimension >::GetGPUDataManager | ( | void | ) | const |
|
virtual |
Get matrices intended to help with the conversion of Index coordinates to PhysicalPoint coordinates
|
inline |
Return the NeighborhoodAccessor functor
Definition at line 147 of file itkGPUImage.h.
|
inline |
Return the NeighborhoodAccessor functor
Definition at line 155 of file itkGPUImage.h.
|
virtual |
TPixel & itk::GPUImage< TPixel, VImageDimension >::GetPixel | ( | const IndexType & | index | ) |
const TPixel & itk::GPUImage< TPixel, VImageDimension >::GetPixel | ( | const IndexType & | index | ) | const |
|
inline |
Return the Pixel Accessor object
Definition at line 131 of file itkGPUImage.h.
|
inline |
Return the Pixel Accesor object
Definition at line 139 of file itkGPUImage.h.
|
inline |
Return a pointer to the container.
Definition at line 165 of file itkGPUImage.h.
|
inline |
Definition at line 171 of file itkGPUImage.h.
|
virtual |
Graft the data and information from one GPUImage to another.
void itk::GPUImage< TPixel, VImageDimension >::GraftITKImage | ( | const DataObject * | data | ) |
|
virtual |
itk::GPUImage< TPixel, VImageDimension >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned int | , | ||
VImageDimension | |||
) |
|
virtual |
Whenever the image has been modified, set the GPU Buffer to dirty
|
static |
|
private |
TPixel & itk::GPUImage< TPixel, VImageDimension >::operator[] | ( | const IndexType & | index | ) |
const TPixel & itk::GPUImage< TPixel, VImageDimension >::operator[] | ( | const IndexType & | index | ) | const |
|
protectedvirtual |
|
inline |
Definition at line 178 of file itkGPUImage.h.
void itk::GPUImage< TPixel, VImageDimension >::SetPixel | ( | const IndexType & | index, |
const TPixel & | value | ||
) |
void itk::GPUImage< TPixel, VImageDimension >::SetPixelContainer | ( | PixelContainer * | container | ) |
void itk::GPUImage< TPixel, VImageDimension >::UpdateBuffers | ( | void | ) |
Explicit synchronize CPU/GPU buffers
void itk::GPUImage< TPixel, VImageDimension >::UpdateCPUBuffer | ( | void | ) |
Explicit synchronize CPU/GPU buffers
void itk::GPUImage< TPixel, VImageDimension >::UpdateGPUBuffer | ( | void | ) |
|
private |
Definition at line 238 of file itkGPUImage.h.
|
private |
Definition at line 236 of file itkGPUImage.h.
Generated on 1667476801 for elastix by 1.9.4 |