go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxImageSamplerBase.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 __elxImageSamplerBase_h
20 #define __elxImageSamplerBase_h
21 
23 #include "elxMacro.h"
24 
25 #include "elxBaseComponentSE.h"
26 
27 #include "itkImageSamplerBase.h"
28 
29 namespace elastix
30 {
31 //using namespace itk; not here because itk::ImageSamplerBase exists also.
32 
43 template< class TElastix >
44 class ImageSamplerBase : public BaseComponentSE< TElastix >
45 {
46 public:
47 
51 
54 
56  typedef typename Superclass::ElastixType ElastixType;
62 
64  typedef typename ElastixType::FixedImageType InputImageType;
65 
68 
70  virtual ITKBaseType * GetAsITKBaseType( void )
71  {
72  return dynamic_cast< ITKBaseType * >( this );
73  }
74 
75 
77  virtual const ITKBaseType * GetAsITKBaseType( void ) const
78  {
79  return dynamic_cast< const ITKBaseType * >( this );
80  }
81 
82 
87  virtual void BeforeEachResolutionBase( void );
88 
89 protected:
90 
94  virtual ~ImageSamplerBase() {}
95 
96 private:
97 
99  ImageSamplerBase( const Self & ); // purposely not implemented
101  void operator=( const Self & ); // purposely not implemented
102 
103 };
104 
105 } // end namespace elastix
106 
107 #ifndef ITK_MANUAL_INSTANTIATION
108 #include "elxImageSamplerBase.hxx"
109 #endif
110 
111 #endif // end #ifndef __elxImageSamplerBase_h
The BaseComponentSE class is a base class for elastix components that provides some basic functionali...
Superclass::ElastixType ElastixType
Superclass::ElastixPointer ElastixPointer
ElastixType::RegistrationBaseType RegistrationType
ElastixType::ConfigurationPointer ConfigurationPointer
ElastixType::Pointer ElastixPointer
ElastixType::ConfigurationType ConfigurationType
virtual ITKBaseType * GetAsITKBaseType(void)
Superclass::RegistrationType RegistrationType
Superclass::ConfigurationPointer ConfigurationPointer
RegistrationType * RegistrationPointer
This class is a base class for any image sampler.
Superclass::ConfigurationType ConfigurationType
BaseComponentSE< TElastix > Superclass
virtual const ITKBaseType * GetAsITKBaseType(void) const
Superclass::RegistrationPointer RegistrationPointer
itk::ImageSamplerBase< InputImageType > ITKBaseType
ElastixType::FixedImageType InputImageType
void operator=(const Self &)


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo