ITK  4.12.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
itk::GPUImage< TPixel, VImageDimension > Class Template Reference

#include <itkGPUImage.h>

+ Inheritance diagram for itk::GPUImage< TPixel, VImageDimension >:
+ Collaboration diagram for itk::GPUImage< TPixel, VImageDimension >:

Detailed Description

template<typename TPixel, unsigned int VImageDimension = 2>
class itk::GPUImage< TPixel, VImageDimension >

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.

Definition at line 40 of file itkGPUImage.h.

Public Types

typedef
DefaultPixelAccessorFunctor
< Self
AccessorFunctorType
 
typedef Superclass::AccessorType AccessorType
 
typedef SmartPointer< const SelfConstPointer
 
typedef WeakPointer< const SelfConstWeakPointer
 
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 Superclass::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
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 Types inherited from itk::Image< TPixel, VImageDimension >
typedef
DefaultPixelAccessorFunctor
< Self
AccessorFunctorType
 
typedef DefaultPixelAccessor
< PixelType
AccessorType
 
typedef SmartPointer< const SelfConstPointer
 
typedef WeakPointer< const SelfConstWeakPointer
 
typedef Superclass::DirectionType DirectionType
 
typedef
Superclass::ImageDimensionType 
ImageDimensionType
 
typedef Superclass::IndexType IndexType
 
typedef Superclass::IndexValueType IndexValueType
 
typedef TPixel InternalPixelType
 
typedef PixelType IOPixelType
 
typedef
NeighborhoodAccessorFunctor
< Self
NeighborhoodAccessorFunctorType
 
typedef Superclass::OffsetType OffsetType
 
typedef Superclass::OffsetValueType OffsetValueType
 
typedef ImportImageContainer
< SizeValueType, PixelType
PixelContainer
 
typedef
PixelContainer::ConstPointer 
PixelContainerConstPointer
 
typedef PixelContainer::Pointer PixelContainerPointer
 
typedef TPixel PixelType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef Image Self
 
typedef Superclass::SizeType SizeType
 
typedef Superclass::SizeValueType SizeValueType
 
typedef Superclass::SpacingType SpacingType
 
typedef
Superclass::SpacingValueType 
SpacingValueType
 
typedef ImageBase
< VImageDimension > 
Superclass
 
typedef TPixel ValueType
 
- Public Types inherited from itk::ImageBase< VImageDimension >
typedef SmartPointer< const SelfConstPointer
 
typedef Matrix
< SpacePrecisionType,
VImageDimension,
VImageDimension > 
DirectionType
 
typedef unsigned int ImageDimensionType
 
typedef Index< VImageDimension > IndexType
 
typedef IndexType::IndexValueType IndexValueType
 
typedef Offset< VImageDimension > OffsetType
 
typedef OffsetType::OffsetValueType OffsetValueType
 
typedef SmartPointer< SelfPointer
 
typedef Point< PointValueType,
VImageDimension > 
PointType
 
typedef SpacePrecisionType PointValueType
 
typedef ImageRegion
< VImageDimension > 
RegionType
 
typedef ImageBase Self
 
typedef Size< VImageDimension > SizeType
 
typedef SizeType::SizeValueType SizeValueType
 
typedef Vector
< SpacingValueType,
VImageDimension > 
SpacingType
 
typedef SpacePrecisionType SpacingValueType
 
typedef DataObject Superclass
 

Public Member Functions

virtual void Allocate (bool initialize=false) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
void DataHasBeenGenerated () override
 
void FillBuffer (const TPixel &value)
 
TPixel * GetBufferPointer () override
 
const TPixel * GetBufferPointer () const override
 
int GetCurrentCommandQueueID ()
 
virtual const
GPUImageDataManager< GPUImage > * 
GetDataManager () const
 
GPUDataManager::Pointer GetGPUDataManager () const
 
virtual GPUImageDataManager
< GPUImage > * 
GetModifiableDataManager ()
 
virtual const char * GetNameOfClass () const
 
const TPixel & GetPixel (const IndexType &index) const
 
TPixel & GetPixel (const IndexType &index)
 
PixelContainerGetPixelContainer ()
 
const PixelContainerGetPixelContainer () const
 
virtual void Graft (const Self *data)
 
virtual void Initialize () override
 
const TPixel & operator[] (const IndexType &index) const
 
TPixel & operator[] (const IndexType &index)
 
void SetCurrentCommandQueue (int queueid)
 
void SetPixel (const IndexType &index, const TPixel &value)
 
void SetPixelContainer (PixelContainer *container)
 
void UpdateBuffers ()
 
AccessorType GetPixelAccessor (void)
 
const AccessorType GetPixelAccessor (void) const
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const
NeighborhoodAccessorFunctorType 
GetNeighborhoodAccessor () const
 
- Public Member Functions inherited from itk::Image< TPixel, VImageDimension >
virtual ::itk::LightObject::Pointer CreateAnother () const
 
void FillBuffer (const TPixel &value)
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const
NeighborhoodAccessorFunctorType 
GetNeighborhoodAccessor () const
 
virtual unsigned int GetNumberOfComponentsPerPixel () const override
 
const TPixel & GetPixel (const IndexType &index) const
 
TPixel & GetPixel (const IndexType &index)
 
AccessorType GetPixelAccessor (void)
 
const AccessorType GetPixelAccessor (void) const
 
PixelContainerGetPixelContainer ()
 
const PixelContainerGetPixelContainer () const
 
TPixel & operator[] (const IndexType &index)
 
const TPixel & operator[] (const IndexType &index) const
 
void SetPixel (const IndexType &index, const TPixel &value)
 
void SetPixelContainer (PixelContainer *container)
 
- Public Member Functions inherited from itk::ImageBase< VImageDimension >
OffsetValueType ComputeOffset (const IndexType &ind) const
 
virtual void CopyInformation (const DataObject *data) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const RegionTypeGetBufferedRegion () const
 
virtual const DirectionTypeGetDirection () const
 
virtual const DirectionTypeGetInverseDirection () const
 
virtual const RegionTypeGetLargestPossibleRegion () const
 
virtual const PointTypeGetOrigin () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual const SpacingTypeGetSpacing () const
 
virtual void Graft (const Self *data)
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetRegions (const SizeType &size)
 
virtual void SetRequestedRegion (const RegionType &region)
 
virtual void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegionToLargestPossibleRegion () override
 
template<typename TCoordRep >
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const
 
template<typename TCoordRep , typename TIndexRep >
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
template<typename TCoordRep >
bool TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point, IndexType &index) const
 
template<typename TCoordRep >
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const
 
virtual void UpdateOutputData () override
 
virtual void UpdateOutputInformation () override
 
virtual bool VerifyRequestedRegion () override
 
virtual void SetOrigin (PointType _arg)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
virtual void SetRegions (const RegionType &region)
 
const OffsetValueTypeGetOffsetTable () const
 
IndexType ComputeIndex (OffsetValueType offset) const
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
template<typename TCoordRep , typename TIndexRep >
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordRep, VImageDimension > &point) const
 
template<typename TCoordRep >
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, VImageDimension > &point) const
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Image< TPixel, VImageDimension >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageBase< VImageDimension >
static unsigned int GetImageDimension ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = VImageDimension
 
- Static Public Attributes inherited from itk::ImageBase< VImageDimension >
static const ImageDimensionType ImageDimension = VImageDimension
 

Protected Member Functions

 GPUImage ()
 
virtual void Graft (const DataObject *data) override
 
virtual ~GPUImage ()
 
- Protected Member Functions inherited from itk::Image< TPixel, VImageDimension >
 Image ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual ~Image ()
 
virtual void ComputeIndexToPhysicalPointMatrices () override
 
- Protected Member Functions inherited from itk::ImageBase< VImageDimension >
void ComputeOffsetTable ()
 
 ImageBase ()
 
virtual void InitializeBufferedRegion ()
 
 ~ImageBase ()
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
IndexType FastComputeIndex (OffsetValueType offset) const
 

Private Attributes

GPUImageDataManager< GPUImage >
::Pointer 
m_DataManager
 

Additional Inherited Members

- Protected Attributes inherited from itk::ImageBase< VImageDimension >
DirectionType m_Direction
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_InverseDirection
 
PointType m_Origin
 
DirectionType m_PhysicalPointToIndex
 
SpacingType m_Spacing
 

Member Typedef Documentation

template<typename TPixel , unsigned int VImageDimension = 2>
typedef DefaultPixelAccessorFunctor< Self > itk::GPUImage< TPixel, VImageDimension >::AccessorFunctorType

Definition at line 70 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::AccessorType itk::GPUImage< TPixel, VImageDimension >::AccessorType

Definition at line 68 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef SmartPointer<const Self> itk::GPUImage< TPixel, VImageDimension >::ConstPointer

Definition at line 46 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef WeakPointer<const Self> itk::GPUImage< TPixel, VImageDimension >::ConstWeakPointer

Definition at line 47 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::DirectionType itk::GPUImage< TPixel, VImageDimension >::DirectionType

Definition at line 59 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::IndexType itk::GPUImage< TPixel, VImageDimension >::IndexType

Definition at line 63 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::InternalPixelType itk::GPUImage< TPixel, VImageDimension >::InternalPixelType

Definition at line 57 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::IOPixelType itk::GPUImage< TPixel, VImageDimension >::IOPixelType

Definition at line 58 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef NeighborhoodAccessorFunctor< Self > itk::GPUImage< TPixel, VImageDimension >::NeighborhoodAccessorFunctorType

Definition at line 72 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::OffsetType itk::GPUImage< TPixel, VImageDimension >::OffsetType

Definition at line 64 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::PixelContainer itk::GPUImage< TPixel, VImageDimension >::PixelContainer

Definition at line 61 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef PixelContainer::ConstPointer itk::GPUImage< TPixel, VImageDimension >::PixelContainerConstPointer

Definition at line 67 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef PixelContainer::Pointer itk::GPUImage< TPixel, VImageDimension >::PixelContainerPointer

Definition at line 66 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::PixelType itk::GPUImage< TPixel, VImageDimension >::PixelType

Definition at line 55 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef SmartPointer<Self> itk::GPUImage< TPixel, VImageDimension >::Pointer

Definition at line 45 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::RegionType itk::GPUImage< TPixel, VImageDimension >::RegionType

Definition at line 65 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef GPUImage itk::GPUImage< TPixel, VImageDimension >::Self

Definition at line 43 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::SizeType itk::GPUImage< TPixel, VImageDimension >::SizeType

Definition at line 62 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::SpacingType itk::GPUImage< TPixel, VImageDimension >::SpacingType

Definition at line 60 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Image<TPixel,VImageDimension> itk::GPUImage< TPixel, VImageDimension >::Superclass

Definition at line 44 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
typedef Superclass::ValueType itk::GPUImage< TPixel, VImageDimension >::ValueType

Definition at line 56 of file itkGPUImage.h.

Constructor & Destructor Documentation

template<typename TPixel , unsigned int VImageDimension = 2>
itk::GPUImage< TPixel, VImageDimension >::GPUImage ( )
protected
template<typename TPixel , unsigned int VImageDimension = 2>
virtual itk::GPUImage< TPixel, VImageDimension >::~GPUImage ( )
protectedvirtual

Member Function Documentation

template<typename TPixel , unsigned int VImageDimension = 2>
virtual void itk::GPUImage< TPixel, VImageDimension >::Allocate ( bool  initializePixels = false)
overridevirtual

Allocate the image memory. The size of the image must already be set, e.g. by calling SetRegions().

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
virtual::itk::LightObject::Pointer itk::GPUImage< TPixel, VImageDimension >::CreateAnother ( ) const
template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::DataHasBeenGenerated ( )
inlineoverride

Definition at line 173 of file itkGPUImage.h.

References itk::DataHasBeenGenerated().

template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::FillBuffer ( const TPixel &  value)
template<typename TPixel , unsigned int VImageDimension = 2>
TPixel* itk::GPUImage< TPixel, VImageDimension >::GetBufferPointer ( )
overridevirtual

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
const TPixel* itk::GPUImage< TPixel, VImageDimension >::GetBufferPointer ( ) const
overridevirtual

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
int itk::GPUImage< TPixel, VImageDimension >::GetCurrentCommandQueueID ( )
inline

Definition at line 158 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
virtual const GPUImageDataManager< GPUImage >* itk::GPUImage< TPixel, VImageDimension >::GetDataManager ( ) const
virtual
template<typename TPixel , unsigned int VImageDimension = 2>
GPUDataManager::Pointer itk::GPUImage< TPixel, VImageDimension >::GetGPUDataManager ( ) const
template<typename TPixel , unsigned int VImageDimension = 2>
virtual GPUImageDataManager< GPUImage >* itk::GPUImage< TPixel, VImageDimension >::GetModifiableDataManager ( )
virtual
template<typename TPixel , unsigned int VImageDimension = 2>
virtual const char* itk::GPUImage< TPixel, VImageDimension >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
NeighborhoodAccessorFunctorType itk::GPUImage< TPixel, VImageDimension >::GetNeighborhoodAccessor ( )
inline

Return the NeighborhoodAccessor functor

Definition at line 122 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
const NeighborhoodAccessorFunctorType itk::GPUImage< TPixel, VImageDimension >::GetNeighborhoodAccessor ( ) const
inline

Return the NeighborhoodAccessor functor

Definition at line 131 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
const TPixel& itk::GPUImage< TPixel, VImageDimension >::GetPixel ( const IndexType index) const
template<typename TPixel , unsigned int VImageDimension = 2>
TPixel& itk::GPUImage< TPixel, VImageDimension >::GetPixel ( const IndexType index)
template<typename TPixel , unsigned int VImageDimension = 2>
AccessorType itk::GPUImage< TPixel, VImageDimension >::GetPixelAccessor ( void  )
inline

Return the Pixel Accessor object

Definition at line 106 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
const AccessorType itk::GPUImage< TPixel, VImageDimension >::GetPixelAccessor ( void  ) const
inline

Return the Pixel Accesor object

Definition at line 114 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
PixelContainer* itk::GPUImage< TPixel, VImageDimension >::GetPixelContainer ( )
inline

Return a pointer to the container.

Definition at line 142 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
const PixelContainer* itk::GPUImage< TPixel, VImageDimension >::GetPixelContainer ( ) const
inline

Definition at line 147 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
virtual void itk::GPUImage< TPixel, VImageDimension >::Graft ( const Self data)
virtual

Graft the data and information from one GPUImage to another.

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
virtual void itk::GPUImage< TPixel, VImageDimension >::Graft ( const DataObject data)
overrideprotectedvirtual
template<typename TPixel , unsigned int VImageDimension = 2>
virtual void itk::GPUImage< TPixel, VImageDimension >::Initialize ( )
overridevirtual

Restore the data object to its initial state. This means releasing memory.

Reimplemented from itk::Image< TPixel, VImageDimension >.

template<typename TPixel , unsigned int VImageDimension = 2>
static Pointer itk::GPUImage< TPixel, VImageDimension >::New ( )
static
template<typename TPixel , unsigned int VImageDimension = 2>
const TPixel& itk::GPUImage< TPixel, VImageDimension >::operator[] ( const IndexType index) const
template<typename TPixel , unsigned int VImageDimension = 2>
TPixel& itk::GPUImage< TPixel, VImageDimension >::operator[] ( const IndexType index)
template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::SetCurrentCommandQueue ( int  queueid)
inline

Definition at line 153 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::SetPixel ( const IndexType index,
const TPixel &  value 
)
template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::SetPixelContainer ( PixelContainer container)
template<typename TPixel , unsigned int VImageDimension = 2>
void itk::GPUImage< TPixel, VImageDimension >::UpdateBuffers ( )

Explicit synchronize CPU/GPU buffers

Member Data Documentation

template<typename TPixel , unsigned int VImageDimension = 2>
const unsigned int itk::GPUImage< TPixel, VImageDimension >::ImageDimension = VImageDimension
static

Definition at line 53 of file itkGPUImage.h.

template<typename TPixel , unsigned int VImageDimension = 2>
GPUImageDataManager< GPUImage >::Pointer itk::GPUImage< TPixel, VImageDimension >::m_DataManager
private

Definition at line 192 of file itkGPUImage.h.


The documentation for this class was generated from the following file: