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 | Protected Member Functions | Protected Attributes | Private Member Functions
elastix::ResamplerBase< TElastix > Class Template Reference

#include <elxResamplerBase.h>

Detailed Description

template<class TElastix>
class elastix::ResamplerBase< TElastix >

Definition at line 73 of file elxResamplerBase.h.

+ Inheritance diagram for elastix::ResamplerBase< TElastix >:

Public Types

typedef Superclass::ConfigurationPointer ConfigurationPointer
 
typedef Superclass::ConfigurationType ConfigurationType
 
typedef ElastixType::CoordRepType CoordRepType
 
typedef ITKBaseType::DirectionType DirectionType
 
typedef Superclass::ElastixPointer ElastixPointer
 
typedef Superclass::ElastixType ElastixType
 
typedef ITKBaseType::IndexType IndexType
 
typedef ElastixType::MovingImageType InputImageType
 
typedef ITKBaseType::InterpolatorType InterpolatorType
 
typedef itk::ResampleImageFilter< InputImageType, OutputImageType, CoordRepTypeITKBaseType
 
typedef ITKBaseType::OriginPointType OriginPointType
 
typedef ElastixType::MovingImageType OutputImageType
 
typedef ITKBaseType::PixelType OutputPixelType
 
typedef ElastixType::ParameterMapType ParameterMapType
 
typedef elx::ProgressCommand ProgressCommandType
 
typedef Superclass::RegistrationPointer RegistrationPointer
 
typedef Superclass::RegistrationType RegistrationType
 
typedef ResamplerBase Self
 
typedef ITKBaseType::SizeType SizeType
 
typedef ITKBaseType::SpacingType SpacingType
 
typedef BaseComponentSE< TElastix > Superclass
 
typedef ITKBaseType::TransformType TransformType
 
- Public Types inherited from elastix::BaseComponentSE< TElastix >
typedef Configuration::Pointer ConfigurationPointer
 
typedef Configuration ConfigurationType
 
typedef itk::WeakPointer< ElastixTypeElastixPointer
 
typedef TElastix ElastixType
 
typedef RegistrationTypeRegistrationPointer
 
typedef ElastixType::RegistrationBaseType RegistrationType
 
typedef BaseComponentSE Self
 
typedef BaseComponent Superclass
 

Public Member Functions

void AfterEachIterationBase (void) override
 
void AfterEachResolutionBase (void) override
 
void AfterRegistrationBase (void) override
 
virtual int BeforeAllTransformix (void)
 
void BeforeRegistrationBase (void) override
 
virtual void CreateItkResultImage (void)
 
virtual void CreateTransformParametersMap (ParameterMapType *paramsMap) const
 
virtual ITKBaseTypeGetAsITKBaseType (void)
 
virtual const ITKBaseTypeGetAsITKBaseType (void) const
 
virtual const char * GetClassName () const
 
 itkStaticConstMacro (ImageDimension, unsigned int, OutputImageType::ImageDimension)
 
virtual void ReadFromFile (void)
 
virtual void ResampleAndWriteResultImage (const char *filename, const bool &showProgress=true)
 
virtual void WriteResultImage (OutputImageType *imageimage, const char *filename, const bool &showProgress=true)
 
virtual void WriteToFile (void) const
 
- Public Member Functions inherited from elastix::BaseComponentSE< TElastix >
ConfigurationTypeGetConfiguration (void) const
 
ElastixTypeGetElastix (void) const
 
RegistrationPointer GetRegistration (void) const
 
 ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponentSE)
 
void SetConfiguration (ConfigurationType *_arg)
 
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)
 
virtual void BeforeEachResolution (void)
 
virtual void BeforeEachResolutionBase (void)
 
virtual void BeforeRegistration (void)
 
virtual void BeforeRegistrationBase (void)
 
virtual const char * elxGetClassName (void) const
 
const char * GetComponentLabel (void) const
 
 ITK_DISALLOW_COPY_AND_ASSIGN (BaseComponent)
 
 itkTypeMacroNoParent (BaseComponent)
 
void SetComponentLabel (const char *label, unsigned int idx)
 

Protected Member Functions

 ResamplerBase ()
 
virtual void SetComponents (void)
 
 ~ResamplerBase () override
 
- Protected Member Functions inherited from elastix::BaseComponentSE< TElastix >
 BaseComponentSE ()=default
 
 ~BaseComponentSE () override=default
 
- Protected Member Functions inherited from elastix::BaseComponent
 BaseComponent ()=default
 
virtual ~BaseComponent ()=default
 

Protected Attributes

bool m_ShowProgress
 
- Protected Attributes inherited from elastix::BaseComponentSE< TElastix >
ConfigurationPointer m_Configuration {}
 
ElastixPointer m_Elastix {}
 
RegistrationPointer m_Registration {}
 

Private Member Functions

void operator= (const Self &)
 
void ReleaseMemory (void)
 
 ResamplerBase (const Self &)
 

Additional Inherited Members

- Static Public Member Functions inherited from elastix::BaseComponent
static std::string ConvertSecondsToDHMS (const double totalSeconds, const unsigned int precision)
 
static void InitializeElastixExecutable ()
 
static bool IsElastixLibrary ()
 

Member Typedef Documentation

◆ ConfigurationPointer

template<class TElastix >
typedef Superclass::ConfigurationPointer elastix::ResamplerBase< TElastix >::ConfigurationPointer

Definition at line 88 of file elxResamplerBase.h.

◆ ConfigurationType

template<class TElastix >
typedef Superclass::ConfigurationType elastix::ResamplerBase< TElastix >::ConfigurationType

Definition at line 87 of file elxResamplerBase.h.

◆ CoordRepType

template<class TElastix >
typedef ElastixType::CoordRepType elastix::ResamplerBase< TElastix >::CoordRepType

Definition at line 97 of file elxResamplerBase.h.

◆ DirectionType

template<class TElastix >
typedef ITKBaseType::DirectionType elastix::ResamplerBase< TElastix >::DirectionType

Definition at line 109 of file elxResamplerBase.h.

◆ ElastixPointer

template<class TElastix >
typedef Superclass::ElastixPointer elastix::ResamplerBase< TElastix >::ElastixPointer

Definition at line 86 of file elxResamplerBase.h.

◆ ElastixType

template<class TElastix >
typedef Superclass::ElastixType elastix::ResamplerBase< TElastix >::ElastixType

Typedef's from superclass.

Definition at line 85 of file elxResamplerBase.h.

◆ IndexType

template<class TElastix >
typedef ITKBaseType::IndexType elastix::ResamplerBase< TElastix >::IndexType

Definition at line 107 of file elxResamplerBase.h.

◆ InputImageType

template<class TElastix >
typedef ElastixType::MovingImageType elastix::ResamplerBase< TElastix >::InputImageType

Typedef's from elastix. NB: it is assumed that fixed and moving image dimension are equal!

Definition at line 94 of file elxResamplerBase.h.

◆ InterpolatorType

template<class TElastix >
typedef ITKBaseType::InterpolatorType elastix::ResamplerBase< TElastix >::InterpolatorType

Definition at line 105 of file elxResamplerBase.h.

◆ ITKBaseType

template<class TElastix >
typedef itk::ResampleImageFilter< InputImageType, OutputImageType, CoordRepType > elastix::ResamplerBase< TElastix >::ITKBaseType

Other typedef's.

Definition at line 101 of file elxResamplerBase.h.

◆ OriginPointType

template<class TElastix >
typedef ITKBaseType::OriginPointType elastix::ResamplerBase< TElastix >::OriginPointType

Definition at line 110 of file elxResamplerBase.h.

◆ OutputImageType

template<class TElastix >
typedef ElastixType::MovingImageType elastix::ResamplerBase< TElastix >::OutputImageType

Definition at line 95 of file elxResamplerBase.h.

◆ OutputPixelType

template<class TElastix >
typedef ITKBaseType::PixelType elastix::ResamplerBase< TElastix >::OutputPixelType

Definition at line 111 of file elxResamplerBase.h.

◆ ParameterMapType

template<class TElastix >
typedef ElastixType::ParameterMapType elastix::ResamplerBase< TElastix >::ParameterMapType

Typedef that is used in the elastix dll version.

Definition at line 114 of file elxResamplerBase.h.

◆ ProgressCommandType

template<class TElastix >
typedef elx::ProgressCommand elastix::ResamplerBase< TElastix >::ProgressCommandType

Typedef for the ProgressCommand.

Definition at line 117 of file elxResamplerBase.h.

◆ RegistrationPointer

template<class TElastix >
typedef Superclass::RegistrationPointer elastix::ResamplerBase< TElastix >::RegistrationPointer

Definition at line 90 of file elxResamplerBase.h.

◆ RegistrationType

template<class TElastix >
typedef Superclass::RegistrationType elastix::ResamplerBase< TElastix >::RegistrationType

Definition at line 89 of file elxResamplerBase.h.

◆ Self

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

Standard ITK stuff.

Definition at line 78 of file elxResamplerBase.h.

◆ SizeType

template<class TElastix >
typedef ITKBaseType::SizeType elastix::ResamplerBase< TElastix >::SizeType

Definition at line 106 of file elxResamplerBase.h.

◆ SpacingType

template<class TElastix >
typedef ITKBaseType::SpacingType elastix::ResamplerBase< TElastix >::SpacingType

Definition at line 108 of file elxResamplerBase.h.

◆ Superclass

template<class TElastix >
typedef BaseComponentSE< TElastix > elastix::ResamplerBase< TElastix >::Superclass

Definition at line 79 of file elxResamplerBase.h.

◆ TransformType

template<class TElastix >
typedef ITKBaseType::TransformType elastix::ResamplerBase< TElastix >::TransformType

Typedef's from ResampleImageFiler.

Definition at line 104 of file elxResamplerBase.h.

Constructor & Destructor Documentation

◆ ResamplerBase() [1/2]

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

The constructor.

◆ ~ResamplerBase()

template<class TElastix >
elastix::ResamplerBase< TElastix >::~ResamplerBase ( )
inlineoverrideprotected

The destructor.

Definition at line 189 of file elxResamplerBase.h.

◆ ResamplerBase() [2/2]

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

The private constructor.

Member Function Documentation

◆ AfterEachIterationBase()

template<class TElastix >
void elastix::ResamplerBase< TElastix >::AfterEachIterationBase ( void  )
overridevirtual

Execute stuff after each iteration:

  • Write the resulting output image.

Reimplemented from elastix::BaseComponent.

◆ AfterEachResolutionBase()

template<class TElastix >
void elastix::ResamplerBase< TElastix >::AfterEachResolutionBase ( void  )
overridevirtual

Execute stuff after each resolution:

  • Write the resulting output image.

Reimplemented from elastix::BaseComponent.

◆ AfterRegistrationBase()

template<class TElastix >
void elastix::ResamplerBase< TElastix >::AfterRegistrationBase ( void  )
overridevirtual

Execute stuff after the registration:

  • Write the resulting output image.

Reimplemented from elastix::BaseComponent.

◆ BeforeAllTransformix()

template<class TElastix >
virtual int elastix::ResamplerBase< TElastix >::BeforeAllTransformix ( void  )
inlinevirtual

Execute stuff before the actual transformation:

  • nothing here

Definition at line 140 of file elxResamplerBase.h.

◆ BeforeRegistrationBase()

template<class TElastix >
void elastix::ResamplerBase< TElastix >::BeforeRegistrationBase ( void  )
overridevirtual

Execute stuff before the actual registration:

  • Set all components into the resampler, such as the transform interpolator, input.
  • Set output image information, such as size, spacing, etc.
  • Set the default pixel value.

Reimplemented from elastix::BaseComponent.

◆ CreateItkResultImage()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::CreateItkResultImage ( void  )
virtual

Function to create the result image in the format of an itk::Image.

◆ CreateTransformParametersMap()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::CreateTransformParametersMap ( ParameterMapType paramsMap) const
virtual

Function to create transform-parameters map.

◆ GetAsITKBaseType() [1/2]

template<class TElastix >
virtual ITKBaseType * elastix::ResamplerBase< TElastix >::GetAsITKBaseType ( void  )
inlinevirtual

Cast to ITKBaseType.

Definition at line 124 of file elxResamplerBase.h.

◆ GetAsITKBaseType() [2/2]

template<class TElastix >
virtual const ITKBaseType * elastix::ResamplerBase< TElastix >::GetAsITKBaseType ( void  ) const
inlinevirtual

Cast to ITKBaseType, to use in const functions.

Definition at line 131 of file elxResamplerBase.h.

◆ GetClassName()

template<class TElastix >
virtual const char * elastix::ResamplerBase< TElastix >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented in elastix::MyStandardResampler< TElastix >, and elastix::OpenCLResampler< TElastix >.

◆ itkStaticConstMacro()

template<class TElastix >
elastix::ResamplerBase< TElastix >::itkStaticConstMacro ( ImageDimension  ,
unsigned int  ,
OutputImageType::ImageDimension   
)

Get the ImageDimension.

◆ operator=()

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

The private copy constructor.

◆ ReadFromFile()

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

Function to read transform-parameters from a file.

Reimplemented in elastix::OpenCLResampler< TElastix >.

◆ ReleaseMemory()

template<class TElastix >
void elastix::ResamplerBase< TElastix >::ReleaseMemory ( void  )
private

Release memory.

◆ ResampleAndWriteResultImage()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::ResampleAndWriteResultImage ( const char *  filename,
const bool showProgress = true 
)
virtual

Function to perform resample and write the result output image to a file.

◆ SetComponents()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::SetComponents ( void  )
protectedvirtual

Method that sets the transform, the interpolator and the inputImage.

◆ WriteResultImage()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::WriteResultImage ( OutputImageType imageimage,
const char *  filename,
const bool showProgress = true 
)
virtual

Function to write the result output image to a file.

◆ WriteToFile()

template<class TElastix >
virtual void elastix::ResamplerBase< TElastix >::WriteToFile ( void  ) const
virtual

Function to write transform-parameters to a file.

Reimplemented in elastix::OpenCLResampler< TElastix >.

Field Documentation

◆ m_ShowProgress

template<class TElastix >
bool elastix::ResamplerBase< TElastix >::m_ShowProgress
protected

Variable that defines to print the progress or not.

Definition at line 195 of file elxResamplerBase.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo