18#ifndef itkUniformRandomSpatialNeighborSubsampler_h
19#define itkUniformRandomSpatialNeighborSubsampler_h
48template <
typename TSample,
typename TRegion>
68 using typename Superclass::SampleType;
69 using typename Superclass::SampleConstPointer;
70 using typename Superclass::MeasurementVectorType;
71 using typename Superclass::InstanceIdentifier;
73 using typename Superclass::SubsampleType;
74 using typename Superclass::SubsamplePointer;
75 using typename Superclass::SubsampleConstIterator;
76 using typename Superclass::InstanceIdentifierHolder;
83 using typename Superclass::RadiusType;
88 using typename Superclass::ImageHelperType;
97 Superclass::SetSeed(seed);
98 this->m_RandomNumberGenerator->SetSeed(this->m_Seed);
104 if (useClock != this->m_UseClockForSeed)
106 this->m_UseClockForSeed = useClock;
107 if (this->m_UseClockForSeed)
109 this->m_RandomNumberGenerator->SetSeed();
115 itkBooleanMacro(UseClockForSeed);
116 itkGetConstMacro(UseClockForSeed,
bool);
121 itkDebugMacro(
"setting NumberOfResultsRequested to " << numberRequested);
122 if (this->m_RequestMaximumNumberOfResults || this->m_NumberOfResultsRequested != numberRequested)
124 this->m_NumberOfResultsRequested = numberRequested;
125 this->m_RequestMaximumNumberOfResults =
false;
163 bool m_UseClockForSeed{};
169#ifndef ITK_MANUAL_INSTANTIATION
170# include "itkUniformRandomSpatialNeighborSubsampler.hxx"
Control indentation during Print() invocation.
Light weight base class for most itk classes.
MersenneTwisterRandom random variate generator.
typename Superclass::Baseclass Baseclass
typename TSample::InstanceIdentifier InstanceIdentifier
typename SubsampleType::Pointer SubsamplePointer
A subsampler that selects all points within the specified radius of the query point.
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....