18#ifndef itkImageRandomConstIteratorWithIndex_h
19#define itkImageRandomConstIteratorWithIndex_h
30template <
unsigned int VDimension>
39 for (
unsigned int dim = 0; dim < VDimension; ++dim)
43 index[dim] = residual + region.
GetIndex(dim);
45 position /= sizeInThisDimension;
140template <
typename TImage>
266template <
typename TImage>
272#ifndef ITK_MANUAL_INSTANTIATION
273# include "itkImageRandomConstIteratorWithIndex.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
A multi-dimensional image iterator that visits a random set of pixels within an image region.
~ImageRandomConstIteratorWithIndex() override=default
SizeValueType GetNumberOfSamples() const
ImageRandomConstIteratorWithIndex()=default
ImageRandomConstIteratorWithIndex Self
ImageConstIteratorWithIndex< TImage > Superclass
SizeValueType m_NumberOfPixelsInRegion
typename SizeType::SizeValueType SizeValueType
Statistics::MersenneTwisterRandomVariateGenerator::Pointer GeneratorPointer
ImageRandomConstIteratorWithIndex(const TImage *ptr, const RegionType ®ion)
GeneratorPointer m_Generator
typename TImage::RegionType RegionType
void SetNumberOfSamples(SizeValueType number)
SizeValueType m_NumberOfSamplesRequested
ImageRandomConstIteratorWithIndex(const ImageConstIteratorWithIndex< TImage > &it)
void ReinitializeSeed(int)
SizeValueType m_NumberOfSamplesDone
An image region represents a structured region of data.
SizeValueType GetNumberOfPixels() const
const IndexType & GetIndex() const
const SizeType & GetSize() const
Implements transparent reference counting.
MersenneTwisterRandom random variate generator.
static Pointer New()
Method for creation through the object factory.
double GetVariateWithOpenRange()
SmartPointer< Self > Pointer
Index< VDimension > RandomIndexInRegion(Statistics::MersenneTwisterRandomVariateGenerator &generator, const ImageRegion< VDimension > ®ion)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
ImageRandomConstIteratorWithIndex(SmartPointer< TImage >, const typename TImage::RegionType &) -> ImageRandomConstIteratorWithIndex< std::remove_const_t< TImage > >
Represent a n-dimensional index in a n-dimensional image.