18 #ifndef __itkImageRegionSplitter_h
19 #define __itkImageRegionSplitter_h
68 template<
unsigned int VImageDimension >
85 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
88 static unsigned int GetImageDimension()
89 {
return VImageDimension; }
107 virtual unsigned int GetNumberOfSplits(
const RegionType & region,
108 unsigned int requestedNumber);
114 virtual RegionType GetSplit(
unsigned int i,
unsigned int numberOfPieces,
121 virtual unsigned int GetNumberOfSplitsInternal(
unsigned int,
124 unsigned int requestedNumber)
const
134 Self *nonconst_this =
const_cast<Self*
>(
this);
139 virtual unsigned int GetSplitInternal(
unsigned int dim,
141 unsigned int numberOfPieces,
153 Self *nonconst_this =
const_cast<Self*
>(
this);
154 region = nonconst_this->
GetSplit(i, numberOfPieces, region);
156 for (
unsigned int d = 0; d < dim; ++d)
158 regionIndex[d] = region.
GetIndex(d);
159 regionSize[d] = region.
GetSize(d);
161 return numberOfPieces;
164 void PrintSelf(std::ostream & os,
Indent indent)
const;
172 #ifndef ITK_MANUAL_INSTANTIATION
173 #include "itkImageRegionSplitter.hxx"