go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxGridSampler.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 __elxGridSampler_h
16 #define __elxGridSampler_h
17 
18 #include "itkImageGridSampler.h"
19 #include "elxIncludes.h"
20 
21 namespace elastix
22 {
23 
24 using namespace itk;
25 
47  template < class TElastix >
48  class GridSampler :
49  public
51  ITK_TYPENAME elx::ImageSamplerBase<TElastix>::InputImageType >,
52  public
53  elx::ImageSamplerBase<TElastix>
54  {
55  public:
56 
58  typedef GridSampler Self;
59  typedef ImageGridSampler<
62  typedef SmartPointer<Self> Pointer;
63  typedef SmartPointer<const Self> ConstPointer;
64 
66  itkNewMacro(Self);
67 
69  itkTypeMacro( GridSampler, ImageGridSampler );
70 
75  elxClassNameMacro( "Grid" );
76 
88  typedef typename Superclass1::MaskType MaskType;
93 
95  itkStaticConstMacro( InputImageDimension, unsigned int, Superclass1::InputImageDimension );
96 
98  typedef typename Superclass2::ElastixType ElastixType;
99  typedef typename Superclass2::ElastixPointer ElastixPointer;
100  typedef typename Superclass2::ConfigurationType ConfigurationType;
101  typedef typename Superclass2::ConfigurationPointer ConfigurationPointer;
102  typedef typename Superclass2::RegistrationType RegistrationType;
103  typedef typename Superclass2::RegistrationPointer RegistrationPointer;
104  typedef typename Superclass2::ITKBaseType ITKBaseType;
105 
109  virtual void BeforeEachResolution(void);
110 
111  protected:
112 
116  virtual ~GridSampler() {}
117 
118  private:
119 
121  GridSampler( const Self& ); // purposely not implemented
123  void operator=( const Self& ); // purposely not implemented
124 
125  }; // end class GridSampler
126 
127 
128 } // end namespace elastix
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "elxGridSampler.hxx"
132 #endif
133 
134 #endif // end #ifndef __elxGridSampler_h
135 


Generated on 21-03-2014 for elastix by doxygen 1.8.1.2 elastix logo