go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elastix::BSplineResampleInterpolator< TElastix > Class Template Reference

#include <elxBSplineResampleInterpolator.h>

Detailed Description

template<typename TElastix>
class elastix::BSplineResampleInterpolator< TElastix >

A resample-interpolator based on B-splines.

The parameters used in this class are:

Parameters

ResampleInterpolator: Select this resample interpolator as follows:
(ResampleInterpolator "FinalBSplineInterpolator")

FinalBSplineInterpolationOrder: the order of the B-spline used to resample the deformed moving image; possible values: (0-5)
example: (FinalBSplineInterpolationOrder 3)
Default: 3.

The transform parameters necessary for transformix, additionally defined by this class, are:

Transform Parameters
FinalBSplineInterpolationOrder: the order of the B-spline used to resample the deformed moving image; possible values: (0-5)
example: (FinalBSplineInterpolationOrder 3)
Default: 3.

With very large images, memory problems may be avoided by using the BSplineResampleInterpolatorFloat. The differences of the result are generally negligible. If you are really in memory problems, you may use the LinearResampleInterpolator, or the NearestNeighborResampleInterpolator.

See also
BSplineResampleInterpolatorFloat

Definition at line 54 of file elxBSplineResampleInterpolator.h.

Inheritance diagram for elastix::BSplineResampleInterpolator< TElastix >:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
using ITKBaseType = typename Superclass2::ITKBaseType
using ParameterMapType
using Pointer = itk::SmartPointer<Self>
using Self = BSplineResampleInterpolator
using Superclass1
using Superclass2 = ResampleInterpolatorBase<TElastix>
Public Types inherited from elastix::ResampleInterpolatorBase< TElastix >
using CoordinateType = ElastixBase::CoordinateType
using ElastixType
using InputImageType = typename ElastixType::MovingImageType
using ITKBaseType = itk::InterpolateImageFunction<InputImageType, CoordinateType>
using ParameterMapType = typename ElastixType::ParameterMapType
using RegistrationType
using Self = ResampleInterpolatorBase
using Superclass = BaseComponentSE<TElastix>
Public Types inherited from elastix::BaseComponentSE< TElastix >
using ElastixType = TElastix
using RegistrationType = typename ElastixType::RegistrationBaseType
using Self = BaseComponentSE
using Superclass = BaseComponent

Public Member Functions

void BeforeRegistration () override
 elxClassNameMacro ("FinalBSplineInterpolator")
 ITK_DISALLOW_COPY_AND_MOVE (BSplineResampleInterpolator)
 itkOverrideGetNameOfClassMacro (BSplineResampleInterpolator)
 itkStaticConstMacro (ImageDimension, unsigned int, Superclass1::ImageDimension)
void ReadFromFile () override
Public Member Functions inherited from elastix::ResampleInterpolatorBase< TElastix >
virtual int BeforeAllTransformix ()
void CreateTransformParameterMap (ParameterMapType &parameterMap) const
ITKBaseTypeGetAsITKBaseType ()
const ITKBaseTypeGetAsITKBaseType () const
 ITK_DISALLOW_COPY_AND_MOVE (ResampleInterpolatorBase)
 itkOverrideGetNameOfClassMacro (ResampleInterpolatorBase)
void WriteToFile (std::ostream &transformationParameterInfo) const
Public Member Functions inherited from elastix::BaseComponentSE< TElastix >
void AddTargetCellToIterationInfo (const char *const name)
const ConfigurationGetConfiguration () const
ElastixTypeGetElastix () const
auto & GetIterationInfoAt (const char *const name)
itk::Statistics::MersenneTwisterRandomVariateGenerator & GetRandomVariateGenerator ()
RegistrationTypeGetRegistration () const
 ITK_DISALLOW_COPY_AND_MOVE (BaseComponentSE)
void RemoveTargetCellFromIterationInfo (const char *const name)
void SetConfiguration (const Configuration *_arg)
void SetElastix (ElastixType *_arg)
Public Member Functions inherited from elastix::BaseComponent
virtual void AfterEachIteration ()
virtual void AfterEachIterationBase ()
virtual void AfterEachResolution ()
virtual void AfterEachResolutionBase ()
virtual void AfterRegistration ()
virtual void AfterRegistrationBase ()
virtual int BeforeAll ()
virtual int BeforeAllBase ()
virtual void BeforeEachResolution ()
virtual void BeforeEachResolutionBase ()
virtual void BeforeRegistrationBase ()
virtual const char * elxGetClassName () const
const char * GetComponentLabel () const
 ITK_DISALLOW_COPY_AND_MOVE (BaseComponent)
 itkVirtualGetNameOfClassMacro (BaseComponent)
void SetComponentLabel (const char *label, unsigned int idx)

Static Public Member Functions

static Pointer New ()
Static Public Member Functions inherited from elastix::BaseComponent
template<typename TBaseComponent>
static auto AsITKBaseType (TBaseComponent *const baseComponent) -> decltype(baseComponent->GetAsITKBaseType())
static void InitializeElastixExecutable ()
static bool IsElastixLibrary ()

Protected Member Functions

 BSplineResampleInterpolator ()=default
 ~BSplineResampleInterpolator () override=default
Protected Member Functions inherited from elastix::ResampleInterpolatorBase< TElastix >
 ResampleInterpolatorBase ()=default
 ~ResampleInterpolatorBase () override=default
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

Private Member Functions

ParameterMapType CreateDerivedTransformParameterMap () const override

Private Attributes

 elxOverrideGetSelfMacro

Additional Inherited Members

Protected Attributes inherited from elastix::BaseComponentSE< TElastix >
Configuration::ConstPointer m_Configuration {}
itk::WeakPointer< TElastix > m_Elastix {}
RegistrationTypem_Registration {}

Member Typedef Documentation

◆ ConstPointer

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 71 of file elxBSplineResampleInterpolator.h.

◆ ITKBaseType

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::ITKBaseType = typename Superclass2::ITKBaseType

Definition at line 104 of file elxBSplineResampleInterpolator.h.

◆ ParameterMapType

template<typename TElastix>
using elastix::ResampleInterpolatorBase< TElastix >::ParameterMapType

Typedef that is used in the elastix dll version.

Definition at line 67 of file elxResampleInterpolatorBase.h.

◆ Pointer

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::Pointer = itk::SmartPointer<Self>

Definition at line 70 of file elxBSplineResampleInterpolator.h.

◆ Self

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::Self = BSplineResampleInterpolator

Standard ITK-stuff.

Definition at line 65 of file elxBSplineResampleInterpolator.h.

◆ Superclass1

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::Superclass1
Initial value:
itk::BSplineInterpolateImageFunction<typename ResampleInterpolatorBase<TElastix>::InputImageType,
double>

Definition at line 66 of file elxBSplineResampleInterpolator.h.

◆ Superclass2

template<typename TElastix>
using elastix::BSplineResampleInterpolator< TElastix >::Superclass2 = ResampleInterpolatorBase<TElastix>

Definition at line 69 of file elxBSplineResampleInterpolator.h.

Constructor & Destructor Documentation

◆ BSplineResampleInterpolator()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::BSplineResampleInterpolator ( )
protecteddefault

The constructor.

◆ ~BSplineResampleInterpolator()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::~BSplineResampleInterpolator ( )
overrideprotecteddefault

The destructor.

Member Function Documentation

◆ BeforeRegistration()

template<typename TElastix>
void elastix::BSplineResampleInterpolator< TElastix >::BeforeRegistration ( )
overridevirtual

Execute stuff before the actual registration:

  • Set the spline order.

Reimplemented from elastix::BaseComponent.

◆ CreateDerivedTransformParameterMap()

template<typename TElastix>
ParameterMapType elastix::BSplineResampleInterpolator< TElastix >::CreateDerivedTransformParameterMap ( ) const
overrideprivatevirtual

Creates a map of the parameters specific for this (derived) interpolator type.

Reimplemented from elastix::ResampleInterpolatorBase< TElastix >.

◆ elxClassNameMacro()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::elxClassNameMacro ( "FinalBSplineInterpolator" )

Name of this class. Use this name in the parameter file to select this specific resample interpolator.
example: (ResampleInterpolator "FinalBSplineInterpolator")

◆ ITK_DISALLOW_COPY_AND_MOVE()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::ITK_DISALLOW_COPY_AND_MOVE ( BSplineResampleInterpolator< TElastix > )

◆ itkOverrideGetNameOfClassMacro()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::itkOverrideGetNameOfClassMacro ( BSplineResampleInterpolator< TElastix > )

Run-time type information (and related methods).

◆ itkStaticConstMacro()

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::itkStaticConstMacro ( ImageDimension ,
unsigned int ,
Superclass1::ImageDimension  )

Dimension of the image.

◆ New()

template<typename TElastix>
Pointer elastix::BSplineResampleInterpolator< TElastix >::New ( )
static

Method for creation through the object factory.

◆ ReadFromFile()

template<typename TElastix>
void elastix::BSplineResampleInterpolator< TElastix >::ReadFromFile ( )
overridevirtual

Function to read transform-parameters from a file.

Reimplemented from elastix::ResampleInterpolatorBase< TElastix >.

Member Data Documentation

◆ elxOverrideGetSelfMacro

template<typename TElastix>
elastix::BSplineResampleInterpolator< TElastix >::elxOverrideGetSelfMacro
private

Definition at line 126 of file elxBSplineResampleInterpolator.h.



Generated on 26-02-2026 for elastix by doxygen 1.16.1 (669aeeefca743c148e2d935b3d3c69535c7491e6) elastix logo