18#ifndef itkImageRegionSplitterBase_h
19#define itkImageRegionSplitterBase_h
78 template <
unsigned int VImageDimension>
82 return this->GetNumberOfSplitsInternal(
88 return this->GetNumberOfSplitsInternal(
102 template <
unsigned int VImageDimension>
106 return this->GetSplitInternal(VImageDimension,
115 return this->GetSplitInternal(
128 unsigned int requestedNumber)
const = 0;
137 unsigned int numberOfPieces,
An ImageIORegion represents a structured region of data.
const IndexType & GetIndex() const
unsigned int GetImageDimension() const
const SizeType & GetSize() const
IndexType & GetModifiableIndex()
SizeType & GetModifiableSize()
Divide an image region into several pieces.
ImageRegionSplitterBase()
unsigned int GetSplit(unsigned int i, unsigned int numberOfPieces, ImageIORegion ®ion) const
void PrintSelf(std::ostream &os, Indent indent) const override
virtual unsigned int GetNumberOfSplitsInternal(unsigned int dim, const IndexValueType regionIndex[], const SizeValueType regionSize[], unsigned int requestedNumber) const =0
unsigned int GetSplit(unsigned int i, unsigned int numberOfPieces, ImageRegion< VImageDimension > ®ion) const
Get a region definition that represents the ith piece a specified region.
unsigned int GetNumberOfSplits(const ImageRegion< VImageDimension > ®ion, unsigned int requestedNumber) const
unsigned int GetNumberOfSplits(const ImageIORegion ®ion, unsigned int requestedNumber) const
virtual unsigned int GetSplitInternal(unsigned int dim, unsigned int i, unsigned int numberOfPieces, IndexValueType regionIndex[], SizeValueType regionSize[]) const =0
An image region represents a structured region of data.
const IndexType & GetIndex() const
IndexType & GetModifiableIndex()
SizeType & GetModifiableSize()
const SizeType & GetSize() const
Control indentation during Print() invocation.
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
IndexValueType m_InternalArray[VDimension]
SizeValueType m_InternalArray[VDimension]