go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
elastix::OpenCLMovingGenericPyramid< TElastix > Class Template Reference

#include <elxOpenCLMovingGenericPyramid.h>

Detailed Description

template<class TElastix>
class elastix::OpenCLMovingGenericPyramid< TElastix >

A pyramid based on the itk::GenericMultiResolutionPyramidImageFilter. The parameters used in this class are:

Parameters:

Pyramid: Select this pyramid as follows:
(MovingImagePyramid "OpenCLMovingGenericImagePyramid")

Pyramid: Enable the OpenCL pyramid as follows:
(OpenCLMovingGenericImagePyramidUseOpenCL "true")

Author
Denis P. Shamonin and Marius Staring. Division of Image Processing, Department of Radiology, Leiden, The Netherlands
Note
This work was funded by the Netherlands Organisation for Scientific Research (NWO NRG-2010.02 and NWO 639.021.124).
See also
MovingGenericPyramid

Definition at line 48 of file elxOpenCLMovingGenericPyramid.h.

Inheritance diagram for elastix::OpenCLMovingGenericPyramid< TElastix >:
Inheritance graph
[legend]

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef GPUInputImageType::Pointer GPUInputImagePointer
 
typedef itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > GPUInputImageType
 
typedef itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > GPUOutputImageType
 
typedef GPUPyramidType::Pointer GPUPyramidPointer
 
typedef itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, floatGPUPyramidType
 
typedef Superclass1::InputImageType::PixelType InputImagePixelType
 
typedef Superclass1::InputImageType InputImageType
 
typedef itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
 
typedef Superclass1::OutputImageType::PixelType OutputImagePixelType
 
typedef Superclass1::OutputImageType OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef OpenCLMovingGenericPyramid Self
 
typedef MovingGenericPyramid< TElastix > Superclass
 
typedef MovingGenericPyramid< TElastix >::Superclass1 Superclass1
 
typedef MovingGenericPyramid< TElastix >::Superclass2 Superclass2
 
- Public Types inherited from elastix::MovingGenericPyramid< TElastix >
typedef Superclass2::ConfigurationPointer ConfigurationPointer
 
typedef Superclass2::ConfigurationType ConfigurationType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass2::ElastixPointer ElastixPointer
 
typedef Superclass2::ElastixType ElastixType
 
typedef Superclass1::InputImageConstPointer InputImageConstPointer
 
typedef Superclass1::InputImagePointer InputImagePointer
 
typedef Superclass1::InputImageType InputImageType
 
typedef Superclass2::ITKBaseType ITKBaseType
 
typedef Superclass1::OutputImagePointer OutputImagePointer
 
typedef Superclass1::OutputImageType OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass2::RegistrationPointer RegistrationPointer
 
typedef Superclass2::RegistrationType RegistrationType
 
typedef Superclass1::RescaleScheduleType RescaleScheduleType
 
typedef Superclass1::ScheduleType ScheduleType
 
typedef MovingGenericPyramid Self
 
typedef Superclass1::SmoothingScheduleType SmoothingScheduleType
 
typedef itk::GenericMultiResolutionPyramidImageFilter< typename MovingImagePyramidBase< TElastix >::InputImageType, typename MovingImagePyramidBase< TElastix >::OutputImageTypeSuperclass1
 
typedef MovingImagePyramidBase< TElastix > Superclass2
 
- Public Types inherited from itk::GenericMultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageType >
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::InputImageConstPointer InputImageConstPointer
 
typedef Superclass::InputImagePointer InputImagePointer
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::OutputImagePointer OutputImagePointer
 
typedef Superclass::OutputImageType OutputImageType
 
typedef InputImageType::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef SigmaArrayType RescaleFactorArrayType
 
typedef ScheduleType RescaleScheduleType
 
typedef NumericTraits< PixelType >::ScalarRealType ScalarRealType
 
typedef Superclass::ScheduleType ScheduleType
 
typedef GenericMultiResolutionPyramidImageFilter Self
 
typedef FixedArray< ScalarRealType, itkGetStaticConstMacro(ImageDimension) > SigmaArrayType
 
typedef Array2D< ScalarRealTypeSmoothingScheduleType
 
typedef Superclass::InputImageType::SpacingType SpacingType
 
typedef MultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageTypeSuperclass
 
typedef Superclass::Superclass SuperSuperclass
 
- Public Types inherited from elastix::MovingImagePyramidBase< TElastix >
typedef Superclass::ConfigurationPointer ConfigurationPointer
 
typedef Superclass::ConfigurationType ConfigurationType
 
typedef Superclass::ElastixPointer ElastixPointer
 
typedef Superclass::ElastixType ElastixType
 
typedef ElastixType::MovingImageType InputImageType
 
typedef itk::MultiResolutionPyramidImageFilter< InputImageType, OutputImageTypeITKBaseType
 
typedef ElastixType::MovingImageType OutputImageType
 
typedef Superclass::RegistrationPointer RegistrationPointer
 
typedef Superclass::RegistrationType RegistrationType
 
typedef ITKBaseType::ScheduleType ScheduleType
 
typedef MovingImagePyramidBase Self
 
typedef BaseComponentSE< TElastix > Superclass
 
- Public Types inherited from elastix::BaseComponentSE< TElastix >
typedef ElastixType::ConfigurationPointer ConfigurationPointer
 
typedef ElastixType::ConfigurationType ConfigurationType
 
typedef ElastixType::Pointer ElastixPointer
 
typedef TElastix ElastixType
 
typedef RegistrationTypeRegistrationPointer
 
typedef ElastixType::RegistrationBaseType RegistrationType
 
typedef BaseComponentSE Self
 
typedef BaseComponent Superclass
 

Public Member Functions

virtual void BeforeRegistration (void)
 
 elxClassNameMacro ("OpenCLMovingGenericImagePyramid")
 
virtual const char * GetClassName () const
 
 itkStaticConstMacro (ImageDimension, unsigned int, Superclass1::ImageDimension)
 
virtual void ReadFromFile (void)
 
- Public Member Functions inherited from elastix::MovingGenericPyramid< TElastix >
virtual void BeforeEachResolution (void)
 
 elxClassNameMacro ("MovingGenericImagePyramid")
 
 itkStaticConstMacro (ImageDimension, unsigned int, Superclass1::ImageDimension)
 
virtual void SetMovingSchedule (void)
 
- Public Member Functions inherited from itk::GenericMultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageType >
virtual void ComputeOnlyForCurrentLevelOff ()
 
virtual void ComputeOnlyForCurrentLevelOn ()
 
virtual bool GetComputeOnlyForCurrentLevel () const
 
virtual const unsigned intGetCurrentLevel ()
 
const RescaleScheduleTypeGetRescaleSchedule (void) const
 
virtual const SmoothingScheduleTypeGetSmoothingSchedule ()
 
 itkStaticConstMacro (ImageDimension, unsigned int, MovingImagePyramidBase< TElastix >::InputImageType::ImageDimension)
 
 itkStaticConstMacro (OutputImageDimension, unsigned int, MovingImagePyramidBase< TElastix >::OutputImageType::ImageDimension)
 
virtual void SetComputeOnlyForCurrentLevel (const bool _arg)
 
virtual void SetCurrentLevel (unsigned int level)
 
virtual void SetNumberOfLevels (unsigned int num)
 
virtual void SetRescaleSchedule (const RescaleScheduleType &schedule)
 
virtual void SetRescaleScheduleToUnity (void)
 
virtual void SetSchedule (const ScheduleType &schedule)
 
virtual void SetSmoothingSchedule (const SmoothingScheduleType &schedule)
 
virtual void SetSmoothingScheduleToZero (void)
 
- Public Member Functions inherited from elastix::MovingImagePyramidBase< TElastix >
virtual void BeforeEachResolutionBase (void)
 
virtual void BeforeRegistrationBase (void)
 
virtual ITKBaseTypeGetAsITKBaseType (void)
 
virtual const ITKBaseTypeGetAsITKBaseType (void) const
 
virtual void WritePyramidImage (const std::string &filename, const unsigned int &level)
 
- Public Member Functions inherited from elastix::BaseComponentSE< TElastix >
virtual ConfigurationTypeGetConfiguration (void) const
 
virtual ElastixTypeGetElastix (void) const
 
virtual RegistrationPointer GetRegistration (void) const
 
virtual void SetConfiguration (ConfigurationType *_arg)
 
virtual void SetElastix (ElastixType *_arg)
 
- Public Member Functions inherited from elastix::BaseComponent
virtual void AfterEachIteration (void)
 
virtual void AfterEachIterationBase (void)
 
virtual void AfterEachResolution (void)
 
virtual void AfterEachResolutionBase (void)
 
virtual void AfterRegistration (void)
 
virtual void AfterRegistrationBase (void)
 
virtual int BeforeAll (void)
 
virtual int BeforeAllBase (void)
 
std::string ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision) const
 
virtual const char * elxGetClassName (void) const
 
virtual const char * GetComponentLabel (void) const
 
virtual void SetComponentLabel (const char *label, unsigned int idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from elastix::MovingGenericPyramid< TElastix >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::GenericMultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageType >
static Pointer New ()
 

Protected Member Functions

void BeforeGenerateData (void)
 
virtual void GenerateData (void)
 
 OpenCLMovingGenericPyramid ()
 
virtual ~OpenCLMovingGenericPyramid ()
 
- Protected Member Functions inherited from elastix::MovingGenericPyramid< TElastix >
 MovingGenericPyramid ()
 
virtual ~MovingGenericPyramid ()
 
- Protected Member Functions inherited from itk::GenericMultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageType >
virtual void GenerateInputRequestedRegion (void)
 
virtual void GenerateOutputInformation (void)
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
 GenericMultiResolutionPyramidImageFilter ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void ReleaseOutputs (void)
 
 ~GenericMultiResolutionPyramidImageFilter ()
 
- Protected Member Functions inherited from elastix::MovingImagePyramidBase< TElastix >
 MovingImagePyramidBase ()
 
virtual ~MovingImagePyramidBase ()
 
- Protected Member Functions inherited from elastix::BaseComponentSE< TElastix >
 BaseComponentSE ()
 
virtual ~BaseComponentSE ()
 
- Protected Member Functions inherited from elastix::BaseComponent
 BaseComponent ()
 
virtual ~BaseComponent ()
 

Private Member Functions

 OpenCLMovingGenericPyramid (const Self &)
 
void operator= (const Self &)
 
void RegisterFactories (void)
 
void SwitchingToCPUAndReport (const bool configError)
 
void UnregisterFactories (void)
 

Private Attributes

bool m_ContextCreated
 
std::vector< ObjectFactoryBasePointerm_Factories
 
GPUPyramidPointer m_GPUPyramid
 
bool m_GPUPyramidCreated
 
bool m_GPUPyramidReady
 
bool m_UseOpenCL
 

Additional Inherited Members

- Protected Attributes inherited from itk::GenericMultiResolutionPyramidImageFilter< MovingImagePyramidBase< TElastix >::InputImageType, MovingImagePyramidBase< TElastix >::OutputImageType >
bool m_ComputeOnlyForCurrentLevel
 
unsigned int m_CurrentLevel
 
SmoothingScheduleType m_SmoothingSchedule
 
bool m_SmoothingScheduleDefined
 
- Protected Attributes inherited from elastix::BaseComponentSE< TElastix >
ConfigurationPointer m_Configuration
 
ElastixPointer m_Elastix
 
RegistrationPointer m_Registration
 

Member Typedef Documentation

template<class TElastix >
typedef itk::SmartPointer< const Self > elastix::OpenCLMovingGenericPyramid< TElastix >::ConstPointer

Definition at line 59 of file elxOpenCLMovingGenericPyramid.h.

Definition at line 88 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > elastix::OpenCLMovingGenericPyramid< TElastix >::GPUInputImageType

GPU Typedefs for GPU image and GPU filter.

Definition at line 87 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > elastix::OpenCLMovingGenericPyramid< TElastix >::GPUOutputImageType

Definition at line 90 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef GPUPyramidType::Pointer elastix::OpenCLMovingGenericPyramid< TElastix >::GPUPyramidPointer

Definition at line 95 of file elxOpenCLMovingGenericPyramid.h.

Definition at line 94 of file elxOpenCLMovingGenericPyramid.h.

Definition at line 79 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef Superclass1::InputImageType elastix::OpenCLMovingGenericPyramid< TElastix >::InputImageType

Typedefs inherited from the superclass.

Definition at line 77 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef itk::ObjectFactoryBase::Pointer elastix::OpenCLMovingGenericPyramid< TElastix >::ObjectFactoryBasePointer

Typedefs for factory.

Definition at line 83 of file elxOpenCLMovingGenericPyramid.h.

Definition at line 80 of file elxOpenCLMovingGenericPyramid.h.

Definition at line 78 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef itk::SmartPointer< Self > elastix::OpenCLMovingGenericPyramid< TElastix >::Pointer

Definition at line 58 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef OpenCLMovingGenericPyramid elastix::OpenCLMovingGenericPyramid< TElastix >::Self

Standard ITK-stuff.

Definition at line 54 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef MovingGenericPyramid< TElastix > elastix::OpenCLMovingGenericPyramid< TElastix >::Superclass

Definition at line 55 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef MovingGenericPyramid< TElastix >::Superclass1 elastix::OpenCLMovingGenericPyramid< TElastix >::Superclass1

Definition at line 56 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
typedef MovingGenericPyramid< TElastix >::Superclass2 elastix::OpenCLMovingGenericPyramid< TElastix >::Superclass2

Definition at line 57 of file elxOpenCLMovingGenericPyramid.h.

Constructor & Destructor Documentation

template<class TElastix >
elastix::OpenCLMovingGenericPyramid< TElastix >::OpenCLMovingGenericPyramid ( )
protected

The constructor.

template<class TElastix >
virtual elastix::OpenCLMovingGenericPyramid< TElastix >::~OpenCLMovingGenericPyramid ( )
inlineprotectedvirtual

The destructor.

Definition at line 114 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
elastix::OpenCLMovingGenericPyramid< TElastix >::OpenCLMovingGenericPyramid ( const Self )
private

The private constructor.

Member Function Documentation

template<class TElastix >
void elastix::OpenCLMovingGenericPyramid< TElastix >::BeforeGenerateData ( void  )
protected

This method performs all configuration for GPU pyramid.

template<class TElastix >
virtual void elastix::OpenCLMovingGenericPyramid< TElastix >::BeforeRegistration ( void  )
virtual

Do some things before registration.

Reimplemented from elastix::BaseComponent.

template<class TElastix >
elastix::OpenCLMovingGenericPyramid< TElastix >::elxClassNameMacro ( "OpenCLMovingGenericImagePyramid"  )

Name of this class. Use this name in the parameter file to select this specific pyramid.
example: (MovingImagePyramid "OpenCLMovingGenericImagePyramid")

template<class TElastix >
virtual void elastix::OpenCLMovingGenericPyramid< TElastix >::GenerateData ( void  )
protectedvirtual
template<class TElastix >
virtual const char* elastix::OpenCLMovingGenericPyramid< TElastix >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from elastix::MovingGenericPyramid< TElastix >.

template<class TElastix >
elastix::OpenCLMovingGenericPyramid< TElastix >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
Superclass1::ImageDimension   
)

Get the ImageDimension.

template<class TElastix >
static Pointer elastix::OpenCLMovingGenericPyramid< TElastix >::New ( )
static

Method for creation through the object factory.

template<class TElastix >
void elastix::OpenCLMovingGenericPyramid< TElastix >::operator= ( const Self )
private

The private copy constructor.

template<class TElastix >
virtual void elastix::OpenCLMovingGenericPyramid< TElastix >::ReadFromFile ( void  )
virtual

Function to read parameters from a file.

template<class TElastix >
void elastix::OpenCLMovingGenericPyramid< TElastix >::RegisterFactories ( void  )
private

Register/Unregister factories.

template<class TElastix >
void elastix::OpenCLMovingGenericPyramid< TElastix >::SwitchingToCPUAndReport ( const bool  configError)
private

Helper method to report switching to CPU mode.

template<class TElastix >
void elastix::OpenCLMovingGenericPyramid< TElastix >::UnregisterFactories ( void  )
private

Field Documentation

template<class TElastix >
bool elastix::OpenCLMovingGenericPyramid< TElastix >::m_ContextCreated
private

Definition at line 134 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
std::vector< ObjectFactoryBasePointer > elastix::OpenCLMovingGenericPyramid< TElastix >::m_Factories
private

Definition at line 136 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
GPUPyramidPointer elastix::OpenCLMovingGenericPyramid< TElastix >::m_GPUPyramid
private

Definition at line 131 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
bool elastix::OpenCLMovingGenericPyramid< TElastix >::m_GPUPyramidCreated
private

Definition at line 133 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
bool elastix::OpenCLMovingGenericPyramid< TElastix >::m_GPUPyramidReady
private

Definition at line 132 of file elxOpenCLMovingGenericPyramid.h.

template<class TElastix >
bool elastix::OpenCLMovingGenericPyramid< TElastix >::m_UseOpenCL
private

Definition at line 135 of file elxOpenCLMovingGenericPyramid.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo