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
23
24namespace elastix
25{
26
51template <class TElastix>
52class ITK_TEMPLATE_EXPORT RandomSampler
53 : public itk::ImageRandomSampler<typename elx::ImageSamplerBase<TElastix>::InputImageType>
54 , public elx::ImageSamplerBase<TElastix>
55{
56public:
58
63 using Pointer = itk::SmartPointer<Self>;
64 using ConstPointer = itk::SmartPointer<const Self>;
65
67 itkNewMacro(Self);
68
71
77
79 using typename Superclass1::DataObjectPointer;
82 using typename Superclass1::InputImageType;
83 using typename Superclass1::InputImagePointer;
87 using typename Superclass1::ImageSampleType;
89 using typename Superclass1::MaskType;
92
94 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension);
95
97 using typename Superclass2::ElastixType;
98 using typename Superclass2::RegistrationType;
99 using ITKBaseType = typename Superclass2::ITKBaseType;
100
104 void
106
107protected:
109 RandomSampler() = default;
111 ~RandomSampler() override = default;
112
113private:
115};
116
117} // end namespace elastix
118
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "elxRandomSampler.hxx"
121#endif
122
123#endif // end #ifndef elxRandomSampler_h
An interpolator based on the itk::ImageRandomSampler.
typename Superclass2::ITKBaseType ITKBaseType
ITK_DISALLOW_COPY_AND_MOVE(RandomSampler)
~RandomSampler() override=default
void BeforeEachResolution() override
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension)
Samples randomly some voxels of an image.
typename InputImageType::PointType InputImagePointType
typename InputImageType::IndexType InputImageIndexType
A class that defines an image sample, which is the coordinates of a point and its value.
This class is a base class for any image sampler.
SpatialObject< Self::InputImageDimension > MaskType
TOutputVectorContainer OutputVectorContainerType
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo