go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxRandomSampler.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 #ifndef __elxRandomSampler_h
19 #define __elxRandomSampler_h
20 
21 #include "elxIncludes.h" // include first to avoid MSVS warning
22 #include "itkImageRandomSampler.h"
23 
24 namespace elastix
25 {
26 
51 template< class TElastix >
53  public
55  typename elx::ImageSamplerBase< TElastix >::InputImageType >,
56  public
57  elx::ImageSamplerBase< TElastix >
58 {
59 public:
60 
67  typedef itk::SmartPointer< Self > Pointer;
68  typedef itk::SmartPointer< const Self > ConstPointer;
69 
71  itkNewMacro( Self );
72 
74  itkTypeMacro( RandomSampler, itk::ImageRandomSampler );
75 
80  elxClassNameMacro( "Random" );
81 
93  typedef typename Superclass1::MaskType MaskType;
96 
98  itkStaticConstMacro( InputImageDimension, unsigned int, Superclass1::InputImageDimension );
99 
101  typedef typename Superclass2::ElastixType ElastixType;
102  typedef typename Superclass2::ElastixPointer ElastixPointer;
103  typedef typename Superclass2::ConfigurationType ConfigurationType;
104  typedef typename Superclass2::ConfigurationPointer ConfigurationPointer;
105  typedef typename Superclass2::RegistrationType RegistrationType;
106  typedef typename Superclass2::RegistrationPointer RegistrationPointer;
107  typedef typename Superclass2::ITKBaseType ITKBaseType;
108 
112  virtual void BeforeEachResolution( void );
113 
114 protected:
115 
119  virtual ~RandomSampler() {}
120 
121 private:
122 
124  RandomSampler( const Self & ); // purposely not implemented
126  void operator=( const Self & ); // purposely not implemented
127 
128 };
129 
130 } // end namespace elastix
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 #include "elxRandomSampler.hxx"
134 #endif
135 
136 #endif // end #ifndef __elxRandomSampler_h
Superclass2::ElastixPointer ElastixPointer
Samples randomly some voxels of an image.
virtual void BeforeEachResolution(void)
Superclass2::ITKBaseType ITKBaseType
Superclass1::InputImageType InputImageType
Superclass1::InputImagePixelType InputImagePixelType
elx::ImageSamplerBase< TElastix > Superclass2
Superclass1::ImageSampleContainerType ImageSampleContainerType
Superclass1::InputImagePointType InputImagePointType
An interpolator based on the itk::ImageRandomSampler.
Superclass::MaskType MaskType
A class that defines an image sample, which is the coordinates of a point and its value...
InputImageType::PointType InputImagePointType
Superclass::InputImageConstPointer InputImageConstPointer
Superclass2::RegistrationType RegistrationType
Superclass1::ImageSampleType ImageSampleType
itk::ImageRandomSampler< typename elx::ImageSamplerBase< TElastix >::InputImageType > Superclass1
Superclass::DataObjectPointer DataObjectPointer
This class is a base class for any image sampler.
Superclass2::RegistrationPointer RegistrationPointer
Superclass1::InputImagePointer InputImagePointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
Superclass1::InputImageRegionType InputImageRegionType
Superclass2::ConfigurationType ConfigurationType
Superclass1::DataObjectPointer DataObjectPointer
Superclass1::OutputVectorContainerPointer OutputVectorContainerPointer
Superclass::InputImageRegionType InputImageRegionType
Superclass2::ElastixType ElastixType
Superclass1::MaskType MaskType
Superclass::InputImagePixelType InputImagePixelType
void operator=(const Self &)
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension)
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
Superclass1::InputImageConstPointer InputImageConstPointer
Superclass1::InputImageIndexType InputImageIndexType
Superclass::InputImagePointer InputImagePointer
InputImageType::IndexType InputImageIndexType
Superclass2::ConfigurationPointer ConfigurationPointer
Superclass1::OutputVectorContainerType OutputVectorContainerType
Superclass::InputImageType InputImageType


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