18#ifndef itkImageRandomConstIteratorWithOnlyIndex_h
19#define itkImageRandomConstIteratorWithOnlyIndex_h
122template <
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;
247#ifndef ITK_MANUAL_INSTANTIATION
248# include "itkImageRandomConstIteratorWithOnlyIndex.hxx"
Pixel-wise addition of two images.
A base class for multi-dimensional iterators templated over image type that are designed to provide o...
typename TImage::OffsetType OffsetType
typename SizeType::SizeValueType SizeValueType
typename TImage::RegionType RegionType
A multi-dimensional image iterator that visits a random set of locations within an image region,...
SizeValueType GetNumberOfSamples() const
ImageRandomConstIteratorWithOnlyIndex(const ImageConstIteratorWithOnlyIndex< TImage > &it)
void ReinitializeSeed(int)
void SetNumberOfSamples(SizeValueType number)
ImageRandomConstIteratorWithOnlyIndex()=default
typename Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
~ImageRandomConstIteratorWithOnlyIndex() override=default
ImageRandomConstIteratorWithOnlyIndex(const ImageType *ptr, const RegionType ®ion)
static Pointer New()
Method for creation through the object factory.
SmartPointer< Self > Pointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType