18#ifndef itkImageRandomConstIteratorWithIndex_h
19#define itkImageRandomConstIteratorWithIndex_h
115template <
typename TImage>
163 m_NumberOfSamplesDone = 0L;
172 m_NumberOfSamplesDone = m_NumberOfSamplesRequested;
180 return (m_NumberOfSamplesDone == 0L);
187 return (m_NumberOfSamplesDone >= m_NumberOfSamplesRequested);
196 ++m_NumberOfSamplesDone;
207 --m_NumberOfSamplesDone;
216 m_NumberOfSamplesRequested = number;
222 return m_NumberOfSamplesRequested;
245#ifndef ITK_MANUAL_INSTANTIATION
246# include "itkImageRandomConstIteratorWithIndex.hxx"
Pixel-wise addition of two images.
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
Self & operator=(const Self &it)
typename SizeType::SizeValueType SizeValueType
typename TImage::AccessorType AccessorType
typename TImage::PixelType PixelType
typename TImage::RegionType RegionType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::OffsetType OffsetType
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelContainer PixelContainer
A multi-dimensional image iterator that visits a random set of pixels within an image region.
~ImageRandomConstIteratorWithIndex() override=default
SizeValueType GetNumberOfSamples() const
typename Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
ImageRandomConstIteratorWithIndex()=default
ImageRandomConstIteratorWithIndex(const ImageType *ptr, const RegionType ®ion)
void SetNumberOfSamples(SizeValueType number)
ImageRandomConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
void ReinitializeSeed(int)
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