18 #ifndef itkImageRegionSplitterBase_h
19 #define itkImageRegionSplitterBase_h
79 template <
unsigned int VImageDimension>
81 unsigned int requestedNumber)
const
83 return this->GetNumberOfSplitsInternal( VImageDimension,
85 region.
GetSize().m_InternalArray,
89 unsigned int requestedNumber)
const
107 template <
unsigned int VImageDimension>
109 unsigned int numberOfPieces,
112 return this->GetSplitInternal( VImageDimension,
119 unsigned int numberOfPieces,
134 virtual unsigned int GetNumberOfSplitsInternal(
unsigned int dim,
137 unsigned int requestedNumber )
const = 0;
143 virtual unsigned int GetSplitInternal(
unsigned int dim,
145 unsigned int numberOfPieces,
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
const IndexType & GetIndex() const
An ImageIORegion represents a structured region of data.
const IndexType & GetIndex() const
unsigned long SizeValueType
An image region represents a structured region of data.
unsigned int GetSplit(unsigned int i, unsigned int numberOfPieces, ImageIORegion ®ion) const
unsigned int GetImageDimension() const
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
IndexType & GetModifiableIndex()
SizeType & GetModifiableSize()
signed long IndexValueType
Divide an image region into several pieces.
const SizeType & GetSize() const
const SizeType & GetSize() const
IndexType & GetModifiableIndex()
SizeType & GetModifiableSize()
Control indentation during Print() invocation.
Base class for most ITK classes.
unsigned int GetNumberOfSplits(const ImageIORegion ®ion, unsigned int requestedNumber) const