18 #ifndef itkImageRandomNonRepeatingConstIteratorWithIndex_h
19 #define itkImageRandomNonRepeatingConstIteratorWithIndex_h
96 #if !defined(ITK_LEGACY_REMOVE)
103 std::cout << std::endl;
112 std::ostringstream ostrm;
113 ostrm <<
"Error: RandomPermuation does not have " << i <<
" elements" << std::endl;
114 throw std::runtime_error(ostrm.str());
226 template<
typename TImage >
360 #ifndef ITK_MANUAL_INSTANTIATION
361 #include "itkImageRandomNonRepeatingConstIteratorWithIndex.hxx"
void SetPriority(SizeValueType i, SizeValueType priority)
itk::Image< SizeValueType, itkGetStaticConstMacro(ImageDimension) > PriorityImageType
static const unsigned int ImageDimension
~ImageRandomNonRepeatingConstIteratorWithIndex()
ImageRandomNonRepeatingConstIteratorWithIndex()
TImage::InternalPixelType InternalPixelType
Superclass::PixelContainerPointer PixelContainerPointer
TImage::SizeType SizeType
Superclass::PixelContainer PixelContainer
ImageConstIteratorWithIndex< TImage > Superclass
TImage::AccessorType AccessorType
NodeOfPermutation * m_Permutation
A multi-dimensional image iterator that visits a random set of pixels within an image region...
Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
Superclass::IndexValueType IndexValueType
ImageRandomNonRepeatingConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
Superclass::OffsetValueType OffsetValueType
Superclass::IndexType IndexType
RandomPermutation(SizeValueType sz)
RandomPermutation * m_Permutation
A node to be used when computing permutations.
OffsetType::OffsetValueType OffsetValueType
void SetPriorityImage(const PriorityImageType *priorityImage)
Superclass::OffsetType OffsetType
TImage::PixelContainer PixelContainer
unsigned long SizeValueType
Superclass::InternalPixelType InternalPixelType
bool operator<(const NodeOfPermutation &b) const
SizeValueType GetNumberOfSamples() const
bool IsAtBegin(void) const
TImage::OffsetType OffsetType
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
TImage::IndexType IndexType
ImageRandomNonRepeatingConstIteratorWithIndex Self
TImage::RegionType RegionType
TImage::PixelType PixelType
static Pointer GetInstance()
IndexType::IndexValueType IndexValueType
Superclass::SizeValueType SizeValueType
Superclass::RegionType RegionType
PixelContainer::Pointer PixelContainerPointer
SizeValueType operator[](SizeValueType i)
Superclass::PixelType PixelType
Produce a random permutation of a collection.
Superclass::ImageType ImageType
RandomPermutation & operator=(const RandomPermutation &it)
SizeValueType m_NumberOfSamplesRequested
Superclass::SizeType SizeType
GeneratorPointer m_Generator
void ReinitializeSeed(unsigned int seed)
Self & operator=(const Self &it)
Self & operator=(const Self &it)
Superclass::AccessorType AccessorType
SizeValueType m_NumberOfPixelsInRegion
void SetNumberOfSamples(SizeValueType number)
SizeValueType m_NumberOfSamplesDone
Templated n-dimensional image class.
SizeType::SizeValueType SizeValueType