18#ifndef itkImageRandomNonRepeatingConstIteratorWithIndex_h
19#define itkImageRandomNonRepeatingConstIteratorWithIndex_h
101 std::ostringstream ostrm;
102 ostrm <<
"Error: RandomPermuation does not have " << i <<
" elements" << std::endl;
103 throw std::runtime_error(ostrm.str());
213template <
typename TImage>
369#ifndef ITK_MANUAL_INSTANTIATION
370# include "itkImageRandomNonRepeatingConstIteratorWithIndex.hxx"
typename OffsetType::OffsetValueType OffsetValueType
Self & operator=(const Self &it)
typename SizeType::SizeValueType SizeValueType
typename TImage::AccessorType AccessorType
typename TImage::PixelType PixelType
typename TImage::RegionType RegionType
typename IndexType::IndexValueType IndexValueType
typename PixelContainer::Pointer PixelContainerPointer
typename TImage::OffsetType OffsetType
ImageConstIteratorWithIndex()=default
typename TImage::SizeType SizeType
typename TImage::IndexType IndexType
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelContainer PixelContainer
itk::Image< SizeValueType, Self::ImageDimension > PriorityImageType
void ReinitializeSeed(int)
static constexpr unsigned int ImageDimension
void SetPriorityImage(const PriorityImageType *priorityImage)
SizeValueType GetNumberOfSamples() const
Self & operator=(const Self &it)
SizeValueType m_NumberOfSamplesDone
typename SizeType::SizeValueType SizeValueType
ImageConstIteratorWithIndex< TImage > Superclass
SizeValueType m_NumberOfPixelsInRegion
ImageRandomNonRepeatingConstIteratorWithIndex Self
SizeValueType m_NumberOfSamplesRequested
RandomPermutation * m_Permutation
typename TImage::RegionType RegionType
ImageRandomNonRepeatingConstIteratorWithIndex(const ImageType *ptr, const RegionType ®ion)
~ImageRandomNonRepeatingConstIteratorWithIndex() override
ImageRandomNonRepeatingConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
ImageRandomNonRepeatingConstIteratorWithIndex()=default
void SetNumberOfSamples(SizeValueType number)
Templated n-dimensional image class.
A node to be used when computing permutations.
bool operator<(const NodeOfPermutation &b) const
Produce a random permutation of a collection.
RandomPermutation & operator=(const RandomPermutation &it)
void SetPriority(SizeValueType i, SizeValueType priority) const
SizeValueType operator[](SizeValueType i) const
RandomPermutation(SizeValueType sz)
typename Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
void ReinitializeSeed() const
NodeOfPermutation * m_Permutation
GeneratorPointer m_Generator
void ReinitializeSeed(unsigned int seed) const
static Pointer New()
Method for creation through the object factory.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType