18 #ifndef __itkImageRandomNonRepeatingConstIteratorWithIndex_h
19 #define __itkImageRandomNonRepeatingConstIteratorWithIndex_h
102 std::cout << std::endl;
110 std::cerr <<
"Error - i dont have " << i <<
" elements" << std::endl;
222 template<
typename TImage >
356 #ifndef ITK_MANUAL_INSTANTIATION
357 #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
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
SizeValueType GetNumberOfSamples(void) const