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 
25 namespace elastix
26 {
27  using namespace itk;
28 
39  template <class TElastix>
40  class ResampleInterpolatorBase : public BaseComponentSE<TElastix>
41  {
42  public:
43 
47 
50 
52  typedef typename Superclass::ElastixType ElastixType;
58 
60  typedef typename ElastixType::MovingImageType InputImageType;
61  typedef typename ElastixType::CoordRepType CoordRepType;
62 
64  typedef InterpolateImageFunction<
66 
68  virtual ITKBaseType * GetAsITKBaseType(void)
69  {
70  return dynamic_cast<ITKBaseType *>(this);
71  }
72 
74  virtual const ITKBaseType * GetAsITKBaseType(void) const
75  {
76  return dynamic_cast<const ITKBaseType *>(this);
77  }
78 
82  virtual int BeforeAllTransformix( void ){ return 0;};
83 
85  virtual void ReadFromFile( void );
86 
88  virtual void WriteToFile( void ) const;
89 
90  protected:
91 
96 
97  private:
98 
100  ResampleInterpolatorBase( const Self& ); // purposely not implemented
102  void operator=( const Self& ); // purposely not implemented
103 
104  }; // end class ResampleInterpolatorBase
105 
106 
107 } //end namespace elastix
108 
109 #ifndef ITK_MANUAL_INSTANTIATION
110 #include "elxResampleInterpolatorBase.hxx"
111 #endif
112 
113 #endif // end #ifndef __elxResampleInterpolatorBase_h


Generated on 27-06-2013 for elastix by doxygen 1.8.3.1 elastix logo