go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxResampleInterpolatorBase.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 __elxResampleInterpolatorBase_h
20 #define __elxResampleInterpolatorBase_h
21 
23 #include "elxMacro.h"
24 
25 #include "elxBaseComponentSE.h"
26 #include "itkInterpolateImageFunction.h"
27 
28 namespace elastix
29 {
30 
41 template< class TElastix >
42 class ResampleInterpolatorBase : public BaseComponentSE< TElastix >
43 {
44 public:
45 
49 
52 
60 
62  typedef typename ElastixType::MovingImageType InputImageType;
63  typedef typename ElastixType::CoordRepType CoordRepType;
64 
66  typedef itk::InterpolateImageFunction<
68 
70  typedef typename ElastixType::ParameterMapType ParameterMapType;
71 
73  virtual ITKBaseType * GetAsITKBaseType( void )
74  {
75  return dynamic_cast< ITKBaseType * >( this );
76  }
77 
78 
80  virtual const ITKBaseType * GetAsITKBaseType( void ) const
81  {
82  return dynamic_cast< const ITKBaseType * >( this );
83  }
84 
85 
89  virtual int BeforeAllTransformix( void ){ return 0; }
90 
92  virtual void ReadFromFile( void );
93 
95  virtual void WriteToFile( void ) const;
96 
98  virtual void CreateTransformParametersMap( ParameterMapType * paramsMap ) const;
99 
100 protected:
101 
106 
107 private:
108 
110  ResampleInterpolatorBase( const Self & ); // purposely not implemented
112  void operator=( const Self & ); // purposely not implemented
113 
114 };
115 
116 } //end namespace elastix
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "elxResampleInterpolatorBase.hxx"
120 #endif
121 
122 #endif // end #ifndef __elxResampleInterpolatorBase_h
elastix::ResampleInterpolatorBase::ResampleInterpolatorBase
ResampleInterpolatorBase(const Self &)
elastix::ResampleInterpolatorBase::ElastixType
Superclass::ElastixType ElastixType
Definition: elxResampleInterpolatorBase.h:51
elastix::ResampleInterpolatorBase::GetAsITKBaseType
virtual ITKBaseType * GetAsITKBaseType(void)
Definition: elxResampleInterpolatorBase.h:73
elastix::ResampleInterpolatorBase::InputImageType
ElastixType::MovingImageType InputImageType
Definition: elxResampleInterpolatorBase.h:62
elastix::ResampleInterpolatorBase::ParameterMapType
ElastixType::ParameterMapType ParameterMapType
Definition: elxResampleInterpolatorBase.h:70
elastix::ResampleInterpolatorBase::CreateTransformParametersMap
virtual void CreateTransformParametersMap(ParameterMapType *paramsMap) const
elastix::ResampleInterpolatorBase::ElastixPointer
Superclass::ElastixPointer ElastixPointer
Definition: elxResampleInterpolatorBase.h:55
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
elxBaseComponentSE.h
elastix::ResampleInterpolatorBase::ConfigurationPointer
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxResampleInterpolatorBase.h:57
elastix::ResampleInterpolatorBase::WriteToFile
virtual void WriteToFile(void) const
elastix::ResampleInterpolatorBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition: elxResampleInterpolatorBase.h:48
elastix::ResampleInterpolatorBase::operator=
void operator=(const Self &)
elastix::ResampleInterpolatorBase::ResampleInterpolatorBase
ResampleInterpolatorBase()
Definition: elxResampleInterpolatorBase.h:103
elastix::ResampleInterpolatorBase::GetAsITKBaseType
virtual const ITKBaseType * GetAsITKBaseType(void) const
Definition: elxResampleInterpolatorBase.h:80
elastix::BaseComponentSE::ElastixPointer
itk::WeakPointer< ElastixType > ElastixPointer
Definition: elxBaseComponentSE.h:53
elastix::ResampleInterpolatorBase::CoordRepType
ElastixType::CoordRepType CoordRepType
Definition: elxResampleInterpolatorBase.h:63
elastix::ResampleInterpolatorBase
This class is the elastix base class for all ResampleInterpolators.
Definition: elxResampleInterpolatorBase.h:43
elastix::ResampleInterpolatorBase::ITKBaseType
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
Definition: elxResampleInterpolatorBase.h:67
elastix::ResampleInterpolatorBase::Self
ResampleInterpolatorBase Self
Definition: elxResampleInterpolatorBase.h:47
elastix::ResampleInterpolatorBase::BeforeAllTransformix
virtual int BeforeAllTransformix(void)
Definition: elxResampleInterpolatorBase.h:89
elastix::ResampleInterpolatorBase::RegistrationPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxResampleInterpolatorBase.h:59
elastix::ResampleInterpolatorBase::~ResampleInterpolatorBase
virtual ~ResampleInterpolatorBase()
Definition: elxResampleInterpolatorBase.h:105
elastix::ResampleInterpolatorBase::ConfigurationType
Superclass::ConfigurationType ConfigurationType
Definition: elxResampleInterpolatorBase.h:56
elxMacro.h
elastix::BaseComponentSE::ConfigurationType
ElastixType::ConfigurationType ConfigurationType
Definition: elxBaseComponentSE.h:56
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::ResampleInterpolatorBase::ReadFromFile
virtual void ReadFromFile(void)
elastix::ResampleInterpolatorBase::RegistrationType
Superclass::RegistrationType RegistrationType
Definition: elxResampleInterpolatorBase.h:58
elastix::BaseComponentSE::RegistrationType
ElastixType::RegistrationBaseType RegistrationType
Definition: elxBaseComponentSE.h:62


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo