18 #ifndef itkUniformRandomSpatialNeighborSubsampler_h
19 #define itkUniformRandomSpatialNeighborSubsampler_h
25 namespace Statistics {
45 template <
typename TSample,
typename TRegion >
93 Superclass::SetSeed(seed);
94 this->m_RandomNumberGenerator->SetSeed(this->m_Seed);
99 if (useClock != this->m_UseClockForSeed)
101 this->m_UseClockForSeed = useClock;
102 if (this->m_UseClockForSeed)
104 this->m_RandomNumberGenerator->SetSeed();
110 itkBooleanMacro(UseClockForSeed);
111 itkGetConstMacro(UseClockForSeed,
bool);
115 itkDebugMacro(
"setting NumberOfResultsRequested to " << numberRequested);
116 if (this->m_RequestMaximumNumberOfResults ||
117 this->m_NumberOfResultsRequested != numberRequested)
119 this->m_NumberOfResultsRequested = numberRequested;
120 this->m_RequestMaximumNumberOfResults =
false;
124 itkGetConstMacro(NumberOfResultsRequested, SearchSizeType);
131 void Search(
const InstanceIdentifier& query,
132 SubsamplePointer& results)
override;
145 void PrintSelf(std::ostream& os,
Indent indent)
const override;
151 virtual RandomIntType GetIntegerVariate(RandomIntType lowerBound,
152 RandomIntType upperBound,
153 RandomIntType itkNotUsed(mean));
163 #ifndef ITK_MANUAL_INSTANTIATION
164 #include "itkUniformRandomSpatialNeighborSubsampler.hxx"
typename SampleType::ConstPointer SampleConstPointer
typename TSample::InstanceIdentifier InstanceIdentifier
Light weight base class for most itk classes.
MersenneTwisterRandom random variate generator.
typename Superclass::Baseclass Baseclass
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
typename IndexType::IndexValueType IndexValueType
typename TSample::MeasurementVectorType MeasurementVectorType
typename RegionType::SizeType RadiusType
typename SubsampleType::Pointer SubsamplePointer
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
signed long IndexValueType
A subsampler that selects all points within the specified radius of the query point.
Control indentation during Print() invocation.
typename SubsampleType::InstanceIdentifierHolder InstanceIdentifierHolder
Fast Index/Offset computation.
typename RegionType::IndexType IndexType
ImageBaseType::RegionType RegionType
typename SubsampleType::ConstIterator SubsampleConstIterator
typename RegionType::SizeType SizeType