ITK  5.2.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  * http://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 
25 namespace itk
26 {
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_MOVE(ImageRegionSplitterMultidimensional);
62 
68 
70  itkNewMacro(Self);
71 
74 
75 protected:
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 
95 private:
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
itkRegion.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageRegionSplitterBase
Divide an image region into several pieces.
Definition: itkImageRegionSplitterBase.h:58
itkImageRegionSplitterBase.h
itkIndex.h
itk::ImageRegionSplitterMultidimensional
Divide a region into several pieces.
Definition: itkImageRegionSplitterMultidimensional.h:58
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::IndexValueType
signed long IndexValueType
Definition: itkIntTypes.h:90
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:62
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83