go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxInterpolatorBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __elxInterpolatorBase_h
20 #define __elxInterpolatorBase_h
21 
23 #include "elxMacro.h"
24 
25 #include "elxBaseComponentSE.h"
26 
27 #include "itkInterpolateImageFunction.h"
28 
29 namespace elastix
30 {
31 
42 template< class TElastix >
43 class InterpolatorBase : public BaseComponentSE< TElastix >
44 {
45 public:
46 
50 
53 
61 
63  typedef typename ElastixType::MovingImageType InputImageType;
64  typedef typename ElastixType::CoordRepType CoordRepType;
65 
67  typedef itk::InterpolateImageFunction<
69 
71  virtual ITKBaseType * GetAsITKBaseType( void )
72  {
73  return dynamic_cast< ITKBaseType * >( this );
74  }
75 
76 
78  virtual const ITKBaseType * GetAsITKBaseType( void ) const
79  {
80  return dynamic_cast< const ITKBaseType * >( this );
81  }
82 
83 
84 protected:
85 
89  virtual ~InterpolatorBase() {}
90 
91 private:
92 
94  InterpolatorBase( const Self & ); // purposely not implemented
96  void operator=( const Self & ); // purposely not implemented
97 
98 };
99 
100 } // end namespace elastix
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "elxInterpolatorBase.hxx"
104 #endif
105 
106 #endif // end #ifndef __elxInterpolatorBase_h
elastix::InterpolatorBase::ITKBaseType
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
Definition: elxInterpolatorBase.h:68
elastix::InterpolatorBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition: elxInterpolatorBase.h:49
elastix::InterpolatorBase::GetAsITKBaseType
virtual const ITKBaseType * GetAsITKBaseType(void) const
Definition: elxInterpolatorBase.h:78
elastix::InterpolatorBase::InputImageType
ElastixType::MovingImageType InputImageType
Definition: elxInterpolatorBase.h:63
elastix::InterpolatorBase::ElastixPointer
Superclass::ElastixPointer ElastixPointer
Definition: elxInterpolatorBase.h:56
elastix::BaseComponentSE::RegistrationPointer
RegistrationType * RegistrationPointer
Definition: elxBaseComponentSE.h:63
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition: elxBaseComponentSE.h:52
elastix::BaseComponentSE::ConfigurationPointer
ElastixType::ConfigurationPointer ConfigurationPointer
Definition: elxBaseComponentSE.h:57
elastix::BaseComponentSE
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Definition: elxBaseComponentSE.h:44
elastix::InterpolatorBase::operator=
void operator=(const Self &)
elastix::InterpolatorBase::CoordRepType
ElastixType::CoordRepType CoordRepType
Definition: elxInterpolatorBase.h:64
elxBaseComponentSE.h
elastix::InterpolatorBase::ConfigurationPointer
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxInterpolatorBase.h:58
elastix::InterpolatorBase::RegistrationPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxInterpolatorBase.h:60
elastix::BaseComponentSE::ElastixPointer
itk::WeakPointer< ElastixType > ElastixPointer
Definition: elxBaseComponentSE.h:53
elastix::InterpolatorBase::InterpolatorBase
InterpolatorBase()
Definition: elxInterpolatorBase.h:87
elastix::InterpolatorBase::RegistrationType
Superclass::RegistrationType RegistrationType
Definition: elxInterpolatorBase.h:59
elastix::InterpolatorBase::GetAsITKBaseType
virtual ITKBaseType * GetAsITKBaseType(void)
Definition: elxInterpolatorBase.h:71
elastix::InterpolatorBase::~InterpolatorBase
virtual ~InterpolatorBase()
Definition: elxInterpolatorBase.h:89
elastix::InterpolatorBase::ConfigurationType
Superclass::ConfigurationType ConfigurationType
Definition: elxInterpolatorBase.h:57
elastix::InterpolatorBase
This class is the elastix base class for all Interpolators.
Definition: elxInterpolatorBase.h:44
elastix::InterpolatorBase::ElastixType
Superclass::ElastixType ElastixType
Definition: elxInterpolatorBase.h:52
elastix::InterpolatorBase::InterpolatorBase
InterpolatorBase(const Self &)
elxMacro.h
elastix::InterpolatorBase::Self
InterpolatorBase Self
Definition: elxInterpolatorBase.h:48
elastix::BaseComponentSE::ConfigurationType
ElastixType::ConfigurationType ConfigurationType
Definition: elxBaseComponentSE.h:56
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::BaseComponentSE::RegistrationType
ElastixType::RegistrationBaseType RegistrationType
Definition: elxBaseComponentSE.h:62


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo