ITK  4.8.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
itk::GPUFiniteDifferenceFunction< TImageType > Class Template Referenceabstract

#include <itkGPUFiniteDifferenceFunction.h>

+ Inheritance diagram for itk::GPUFiniteDifferenceFunction< TImageType >:
+ Collaboration diagram for itk::GPUFiniteDifferenceFunction< TImageType >:

Detailed Description

template<typename TImageType>
class itk::GPUFiniteDifferenceFunction< TImageType >

This is a base class of GPU finite difference function. Note that unlike most GPU classes, derived class of GPUFiniteDifferenceFunction does not have corresponding CPU class as its parent but only has CPU class FiniteDifferenceFunction as its base class. Therefore, only members of FiniteDifferenceFunction are reused by its derived GPU classes.

How to use this class
GPUFiniteDifferenceFunction must be subclassed to add functionality for GPUComputeUpdate.

Definition at line 47 of file itkGPUFiniteDifferenceFunction.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::DefaultBoundaryConditionType 
DefaultBoundaryConditionType
 
typedef Superclass DifferenceFunctionType
 
typedef Superclass::FloatOffsetType FloatOffsetType
 
typedef Superclass::ImageType ImageType
 
typedef
Superclass::NeighborhoodType 
NeighborhoodType
 
typedef Superclass::PixelRealType PixelRealType
 
typedef Superclass::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::RadiusType RadiusType
 
typedef GPUFiniteDifferenceFunction Self
 
typedef
FiniteDifferenceFunction
< TImageType > 
Superclass
 
typedef Superclass::TimeStepType TimeStepType
 
- Public Types inherited from itk::FiniteDifferenceFunction< TImageType >
typedef SmartPointer< const SelfConstPointer
 
typedef
ZeroFluxNeumannBoundaryCondition
< ImageType
DefaultBoundaryConditionType
 
typedef Vector< float,
itkGetStaticConstMacro(ImageDimension) > 
FloatOffsetType
 
typedef TImageType ImageType
 
typedef Vector< PixelRealType,
itkGetStaticConstMacro(ImageDimension) > 
NeighborhoodScalesType
 
typedef
ConstNeighborhoodIterator
< TImageType,
DefaultBoundaryConditionType
NeighborhoodType
 
typedef double PixelRealType
 
typedef ImageType::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef
ConstNeighborhoodIterator
< TImageType >::RadiusType 
RadiusType
 
typedef FiniteDifferenceFunction Self
 
typedef LightObject Superclass
 
typedef double TimeStepType
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual const char * GetNameOfClass () const
 
virtual void GPUAllocateMetricData (unsigned int)
 
virtual void GPUComputeUpdate (const typename TImageType::Pointer output, typename TImageType::Pointer update, void *gd)=0
 
virtual void GPUReleaseMetricData ()
 
virtual PixelType ComputeUpdate (const NeighborhoodType &, void *, const FloatOffsetType &) override
 
- Public Member Functions inherited from itk::FiniteDifferenceFunction< TImageType >
virtual TimeStepType ComputeGlobalTimeStep (void *GlobalData) const =0
 
const NeighborhoodScalesType ComputeNeighborhoodScales () const
 
virtual void * GetGlobalDataPointer () const =0
 
const RadiusTypeGetRadius () const
 
void GetScaleCoefficients (PixelRealType vals[ImageDimension]) const
 
virtual void InitializeIteration ()
 
virtual void ReleaseGlobalDataPointer (void *GlobalData) const =0
 
void SetRadius (const RadiusType &r)
 
void SetScaleCoefficients (PixelRealType vals[ImageDimension])
 
- Public Member Functions inherited from itk::LightObject
virtual Pointer CreateAnother () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Attributes

static const unsigned int ImageDimension = ImageType::ImageDimension
 
- Static Public Attributes inherited from itk::FiniteDifferenceFunction< TImageType >
static const unsigned int ImageDimension = ImageType::ImageDimension
 

Protected Member Functions

 GPUFiniteDifferenceFunction ()
 
 ~GPUFiniteDifferenceFunction ()
 
- Protected Member Functions inherited from itk::FiniteDifferenceFunction< TImageType >
 FiniteDifferenceFunction ()
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~FiniteDifferenceFunction ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

int m_ComputeUpdateGPUKernelHandle
 
GPUKernelManager::Pointer m_GPUKernelManager
 
- Protected Attributes inherited from itk::FiniteDifferenceFunction< TImageType >
RadiusType m_Radius
 
PixelRealType m_ScaleCoefficients [ImageDimension]
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Private Member Functions

 GPUFiniteDifferenceFunction (const Self &)
 
void operator= (const Self &)
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Member Typedef Documentation

template<typename TImageType>
typedef SmartPointer< const Self > itk::GPUFiniteDifferenceFunction< TImageType >::ConstPointer

Definition at line 56 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::DefaultBoundaryConditionType itk::GPUFiniteDifferenceFunction< TImageType >::DefaultBoundaryConditionType

The default boundary condition for finite difference functions that is used unless overridden in the Evaluate() method.

Definition at line 74 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass itk::GPUFiniteDifferenceFunction< TImageType >::DifferenceFunctionType

Definition at line 54 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::FloatOffsetType itk::GPUFiniteDifferenceFunction< TImageType >::FloatOffsetType

A floating point offset from an image grid location. Used for interpolation among grid values in a neighborhood.

Definition at line 84 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::ImageType itk::GPUFiniteDifferenceFunction< TImageType >::ImageType

Extract some parameters from the image type

Definition at line 59 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::NeighborhoodType itk::GPUFiniteDifferenceFunction< TImageType >::NeighborhoodType

Neighborhood type

Definition at line 80 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::PixelRealType itk::GPUFiniteDifferenceFunction< TImageType >::PixelRealType

Definition at line 64 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::PixelType itk::GPUFiniteDifferenceFunction< TImageType >::PixelType

Definition at line 63 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef SmartPointer< Self > itk::GPUFiniteDifferenceFunction< TImageType >::Pointer

Definition at line 55 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::RadiusType itk::GPUFiniteDifferenceFunction< TImageType >::RadiusType

Neighborhood radius type

Definition at line 77 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef GPUFiniteDifferenceFunction itk::GPUFiniteDifferenceFunction< TImageType >::Self

Standard class typedefs.

Definition at line 52 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef FiniteDifferenceFunction< TImageType > itk::GPUFiniteDifferenceFunction< TImageType >::Superclass

Definition at line 53 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
typedef Superclass::TimeStepType itk::GPUFiniteDifferenceFunction< TImageType >::TimeStepType

Define the TimeStepType to always be double.

Definition at line 70 of file itkGPUFiniteDifferenceFunction.h.

Constructor & Destructor Documentation

template<typename TImageType>
itk::GPUFiniteDifferenceFunction< TImageType >::GPUFiniteDifferenceFunction ( )
inlineprotected

Definition at line 113 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
itk::GPUFiniteDifferenceFunction< TImageType >::~GPUFiniteDifferenceFunction ( )
inlineprotected

Definition at line 116 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
itk::GPUFiniteDifferenceFunction< TImageType >::GPUFiniteDifferenceFunction ( const Self )
private

Member Function Documentation

template<typename TImageType>
virtual PixelType itk::GPUFiniteDifferenceFunction< TImageType >::ComputeUpdate ( const NeighborhoodType ,
void *  ,
const FloatOffsetType  
)
inlineoverridevirtual

Empty implementation - this will not be used by GPU filters

Implements itk::FiniteDifferenceFunction< TImageType >.

Definition at line 88 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
virtual const char* itk::GPUFiniteDifferenceFunction< TImageType >::GetNameOfClass ( ) const
virtual
template<typename TImageType>
virtual void itk::GPUFiniteDifferenceFunction< TImageType >::GPUAllocateMetricData ( unsigned  int)
inlinevirtual

Allocate GPU buffers for computing metric statitics

Reimplemented in itk::GPUDemonsRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.

Definition at line 106 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
virtual void itk::GPUFiniteDifferenceFunction< TImageType >::GPUComputeUpdate ( const typename TImageType::Pointer  output,
typename TImageType::Pointer  update,
void *  gd 
)
pure virtual

GPU function to compute update buffer

Implemented in itk::GPUGradientNDAnisotropicDiffusionFunction< TImage >.

template<typename TImageType>
virtual void itk::GPUFiniteDifferenceFunction< TImageType >::GPUReleaseMetricData ( )
inlinevirtual

Release GPU buffers for computing metric statitics

Reimplemented in itk::GPUDemonsRegistrationFunction< TFixedImage, TMovingImage, TDisplacementField >.

Definition at line 110 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
void itk::GPUFiniteDifferenceFunction< TImageType >::operator= ( const Self )
private

Member Data Documentation

template<typename TImageType>
const unsigned int itk::GPUFiniteDifferenceFunction< TImageType >::ImageDimension = ImageType::ImageDimension
static

Save image dimension.

Definition at line 67 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
int itk::GPUFiniteDifferenceFunction< TImageType >::m_ComputeUpdateGPUKernelHandle
protected

GPU kernel handle for GPUComputeUpdate()

Definition at line 123 of file itkGPUFiniteDifferenceFunction.h.

template<typename TImageType>
GPUKernelManager::Pointer itk::GPUFiniteDifferenceFunction< TImageType >::m_GPUKernelManager
protected

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