|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkImageRandomConstIteratorWithOnlyIndex_h
19 #define itkImageRandomConstIteratorWithOnlyIndex_h
122 template <
typename TImage>
165 m_NumberOfSamplesDone = 0L;
174 m_NumberOfSamplesDone = m_NumberOfSamplesRequested;
182 return (m_NumberOfSamplesDone == 0L);
189 return (m_NumberOfSamplesDone >= m_NumberOfSamplesRequested);
198 ++m_NumberOfSamplesDone;
209 --m_NumberOfSamplesDone;
218 m_NumberOfSamplesRequested = number;
224 return m_NumberOfSamplesRequested;
232 ReinitializeSeed(
int);
247 #ifndef ITK_MANUAL_INSTANTIATION
248 # include "itkImageRandomConstIteratorWithOnlyIndex.hxx"
ImageRandomConstIteratorWithOnlyIndex(const ImageConstIteratorWithOnlyIndex< TImage > &it)
typename TImage::OffsetType OffsetType
SizeValueType GetNumberOfSamples() const
ImageBaseType::SizeType SizeType
typename TImage::RegionType RegionType
ImageBaseType::IndexType IndexType
void SetNumberOfSamples(SizeValueType number)
typename Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
ImageBaseType::RegionType RegionType
static Pointer New()
Method for creation through the object factory.
A base class for multi-dimensional iterators templated over image type that are designed to provide o...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
typename SizeType::SizeValueType SizeValueType
A multi-dimensional image iterator that visits a random set of locations within an image region,...
unsigned long SizeValueType