ITK  6.0.0
Insight Toolkit
itkImageRegionSplitterMultidimensional.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkImageRegionSplitterMultidimensional_h
19#define itkImageRegionSplitterMultidimensional_h
20
21#include "itkRegion.h"
22#include "itkIndex.h"
24
25namespace itk
26{
59{
60public:
61 ITK_DISALLOW_COPY_AND_MOVE(ImageRegionSplitterMultidimensional);
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(ImageRegionSplitterMultidimensional);
74
75protected:
77
78
79 unsigned int
80 GetNumberOfSplitsInternal(unsigned int dim,
81 const IndexValueType regionIndex[],
82 const SizeValueType regionSize[],
83 unsigned int requestedNumber) const override;
84
85 unsigned int
86 GetSplitInternal(unsigned int dim,
87 unsigned int splitI,
88 unsigned int numberOfPieces,
89 IndexValueType regionIndex[],
90 SizeValueType regionSize[]) const override;
91
92 void
93 PrintSelf(std::ostream & os, Indent indent) const override;
94
95private:
96 static unsigned int
97 ComputeSplits(unsigned int dim,
98 unsigned int requestedNumber,
99 const IndexValueType regionIndex[],
100 const SizeValueType regionSize[],
101 unsigned int splits[]);
102};
103} // end namespace itk
104
105#endif
Divide an image region into several pieces.
static unsigned int ComputeSplits(unsigned int dim, unsigned int requestedNumber, const IndexValueType regionIndex[], const SizeValueType regionSize[], unsigned int splits[])
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int GetNumberOfSplitsInternal(unsigned int dim, const IndexValueType regionIndex[], const SizeValueType regionSize[], unsigned int requestedNumber) const override
unsigned int GetSplitInternal(unsigned int dim, unsigned int splitI, unsigned int numberOfPieces, IndexValueType regionIndex[], SizeValueType regionSize[]) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Base class for most ITK classes.
Definition: itkObject.h:62
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
long IndexValueType
Definition: itkIntTypes.h:93
unsigned long SizeValueType
Definition: itkIntTypes.h:86