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  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __elxResampleInterpolatorBase_h
16 #define __elxResampleInterpolatorBase_h
17 
19 #include "elxMacro.h"
20 
21 #include "elxBaseComponentSE.h"
22 #include "itkInterpolateImageFunction.h"
23 
24 namespace elastix
25 {
26 
37 template< class TElastix >
38 class ResampleInterpolatorBase : public BaseComponentSE< TElastix >
39 {
40 public:
41 
45 
48 
50  typedef typename Superclass::ElastixType ElastixType;
56 
58  typedef typename ElastixType::MovingImageType InputImageType;
59  typedef typename ElastixType::CoordRepType CoordRepType;
60 
62  typedef itk::InterpolateImageFunction<
64 
66  typedef typename ElastixType::ParameterMapType ParameterMapType;
67 
69  virtual ITKBaseType * GetAsITKBaseType( void )
70  {
71  return dynamic_cast< ITKBaseType * >( this );
72  }
73 
74 
76  virtual const ITKBaseType * GetAsITKBaseType( void ) const
77  {
78  return dynamic_cast< const ITKBaseType * >( this );
79  }
80 
81 
85  virtual int BeforeAllTransformix( void ){ return 0; }
86 
88  virtual void ReadFromFile( void );
89 
91  virtual void WriteToFile( void ) const;
92 
94  virtual void CreateTransformParametersMap( ParameterMapType * paramsMap ) const;
95 
96 protected:
97 
102 
103 private:
104 
106  ResampleInterpolatorBase( const Self & ); // purposely not implemented
108  void operator=( const Self & ); // purposely not implemented
109 
110 };
111 
112 } //end namespace elastix
113 
114 #ifndef ITK_MANUAL_INSTANTIATION
115 #include "elxResampleInterpolatorBase.hxx"
116 #endif
117 
118 #endif // end #ifndef __elxResampleInterpolatorBase_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Superclass::RegistrationType RegistrationType
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
ElastixType::MovingImageType InputImageType
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
virtual void CreateTransformParametersMap(ParameterMapType *paramsMap) const
virtual ITKBaseType * GetAsITKBaseType(void)
ElastixType::ParameterMapType ParameterMapType
RegistrationType * RegistrationPointer
Superclass::ConfigurationPointer ConfigurationPointer
This class is the elastix base class for all ResampleInterpolators.
Superclass::RegistrationPointer RegistrationPointer
virtual const ITKBaseType * GetAsITKBaseType(void) const
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
virtual void WriteToFile(void) const
Superclass::ConfigurationType ConfigurationType


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo