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 
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
elastix::ImageSamplerBase::ElastixType
Superclass::ElastixType ElastixType
Definition: elxImageSamplerBase.h:53
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
elastix::ImageSamplerBase::ElastixPointer
Superclass::ElastixPointer ElastixPointer
Definition: elxImageSamplerBase.h:57
elastix::ImageSamplerBase::~ImageSamplerBase
virtual ~ImageSamplerBase()
Definition: elxImageSamplerBase.h:94
elxBaseComponentSE.h
elastix::ImageSamplerBase::ImageSamplerBase
ImageSamplerBase(const Self &)
itkImageSamplerBase.h
elastix::ImageSamplerBase::ConfigurationType
Superclass::ConfigurationType ConfigurationType
Definition: elxImageSamplerBase.h:58
elastix::ImageSamplerBase::RegistrationType
Superclass::RegistrationType RegistrationType
Definition: elxImageSamplerBase.h:60
elastix::ImageSamplerBase::ImageSamplerBase
ImageSamplerBase()
Definition: elxImageSamplerBase.h:92
elastix::ImageSamplerBase::InputImageType
ElastixType::FixedImageType InputImageType
Definition: elxImageSamplerBase.h:64
elastix::ImageSamplerBase::BeforeEachResolutionBase
virtual void BeforeEachResolutionBase(void)
elastix::ImageSamplerBase::GetAsITKBaseType
virtual ITKBaseType * GetAsITKBaseType(void)
Definition: elxImageSamplerBase.h:70
elastix::BaseComponentSE::ElastixPointer
itk::WeakPointer< ElastixType > ElastixPointer
Definition: elxBaseComponentSE.h:53
elastix::ImageSamplerBase::ITKBaseType
itk::ImageSamplerBase< InputImageType > ITKBaseType
Definition: elxImageSamplerBase.h:67
elastix::ImageSamplerBase::ConfigurationPointer
Superclass::ConfigurationPointer ConfigurationPointer
Definition: elxImageSamplerBase.h:59
elastix::ImageSamplerBase::GetAsITKBaseType
virtual const ITKBaseType * GetAsITKBaseType(void) const
Definition: elxImageSamplerBase.h:77
itk::ImageSamplerBase
This class is a base class for any image sampler.
Definition: itkImageSamplerBase.h:45
elastix::ImageSamplerBase::Self
ImageSamplerBase Self
Definition: elxImageSamplerBase.h:49
elxMacro.h
elastix::BaseComponentSE::ConfigurationType
ElastixType::ConfigurationType ConfigurationType
Definition: elxBaseComponentSE.h:56
elastix::ImageSamplerBase::operator=
void operator=(const Self &)
elastix::ImageSamplerBase::RegistrationPointer
Superclass::RegistrationPointer RegistrationPointer
Definition: elxImageSamplerBase.h:61
elastix
Definition: elxFixedGenericPyramid.h:25
elastix::BaseComponentSE::RegistrationType
ElastixType::RegistrationBaseType RegistrationType
Definition: elxBaseComponentSE.h:62
elastix::ImageSamplerBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition: elxImageSamplerBase.h:50


Generated on OURCE_DATE_EPOCH for elastix by doxygen 1.8.18 elastix logo