go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
elxRandomSamplerSparseMask.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 elxRandomSamplerSparseMask_h
19#define elxRandomSamplerSparseMask_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24namespace elastix
25{
26
52
53template <class TElastix>
54class ITK_TEMPLATE_EXPORT RandomSamplerSparseMask
55 : public itk::ImageRandomSamplerSparseMask<typename elx::ImageSamplerBase<TElastix>::InputImageType>
56 , public elx::ImageSamplerBase<TElastix>
57{
58public:
60
65 using Pointer = itk::SmartPointer<Self>;
66 using ConstPointer = itk::SmartPointer<const Self>;
67
69 itkNewMacro(Self);
70
73
78 elxClassNameMacro("RandomSparseMask");
79
81 using typename Superclass1::DataObjectPointer;
82 using typename Superclass1::OutputVectorContainerType;
83 using typename Superclass1::OutputVectorContainerPointer;
84 using typename Superclass1::InputImageType;
85 using typename Superclass1::InputImagePointer;
86 using typename Superclass1::InputImageConstPointer;
87 using typename Superclass1::InputImageRegionType;
88 using typename Superclass1::InputImagePixelType;
89 using typename Superclass1::ImageSampleType;
90 using typename Superclass1::ImageSampleContainerType;
91 using typename Superclass1::MaskType;
92 using typename Superclass1::InputImageIndexType;
93 using typename Superclass1::InputImagePointType;
94
96 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension);
97
99 using typename Superclass2::ElastixType;
100 using typename Superclass2::RegistrationType;
101 using ITKBaseType = typename Superclass2::ITKBaseType;
102
106 void
108
109protected:
113 ~RandomSamplerSparseMask() override = default;
114
115private:
117};
118
119} // end namespace elastix
120
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "elxRandomSamplerSparseMask.hxx"
123#endif
124
125#endif // end #ifndef elxRandomSamplerSparseMask_h
elxClassNameMacro("RandomSparseMask")
itk::SmartPointer< const Self > ConstPointer
itk::ImageRandomSamplerSparseMask< typename elx::ImageSamplerBase< TElastix >::InputImageType > Superclass1
~RandomSamplerSparseMask() override=default
elx::ImageSamplerBase< TElastix > Superclass2
void BeforeEachResolution() override
ITK_DISALLOW_COPY_AND_MOVE(RandomSamplerSparseMask)
typename Superclass2::ITKBaseType ITKBaseType
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass1::InputImageDimension)
Samples randomly some voxels of an image.
This class is a base class for any image sampler.


Generated on 1768596610 for elastix by doxygen 1.15.0 elastix logo