go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageRandomSamplerBase.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 itkImageRandomSamplerBase_h
19#define itkImageRandomSamplerBase_h
20
21#include "itkImageSamplerBase.h"
22
23namespace itk
24{
25
35template <class TInputImage>
36class ITK_TEMPLATE_EXPORT ImageRandomSamplerBase : public ImageSamplerBase<TInputImage>
37{
38public:
40
44 using Pointer = SmartPointer<Self>;
45 using ConstPointer = SmartPointer<const Self>;
46
48 itkNewMacro(Self);
49
52
54 using typename Superclass::DataObjectPointer;
57 using typename Superclass::InputImageType;
58 using typename Superclass::InputImagePointer;
62 using typename Superclass::ImageSampleType;
65 using typename Superclass::MaskType;
66
68 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension);
69
70protected:
73
75 ~ImageRandomSamplerBase() override = default;
76
78 void
80
82 void
83 PrintSelf(std::ostream & os, Indent indent) const override;
84
86 std::vector<double> m_RandomNumberList;
87};
88
89} // end namespace itk
90
91#ifndef ITK_MANUAL_INSTANTIATION
92# include "itkImageRandomSamplerBase.hxx"
93#endif
94
95#endif // end #ifndef itkImageRandomSamplerBase_h
This class is a base class for any image sampler that randomly picks samples.
void PrintSelf(std::ostream &os, Indent indent) const override
void BeforeThreadedGenerateData() override
~ImageRandomSamplerBase() override=default
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
SmartPointer< const Self > ConstPointer
ITK_DISALLOW_COPY_AND_MOVE(ImageRandomSamplerBase)
std::vector< double > m_RandomNumberList
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
typename ImageSampleContainerType::Pointer ImageSampleContainerPointer
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