ITK
6.0.0
Insight Toolkit
ITK
Modules
Core
Common
include
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
"
23
#include "
itkImageRegionSplitterBase.h
"
24
25
namespace
itk
26
{
58
class
ITKCommon_EXPORT
ImageRegionSplitterMultidimensional
:
public
ImageRegionSplitterBase
59
{
60
public
:
61
ITK_DISALLOW_COPY_AND_MOVE(
ImageRegionSplitterMultidimensional
);
62
64
using
Self
=
ImageRegionSplitterMultidimensional
;
65
using
Superclass
=
ImageRegionSplitterBase
;
66
using
Pointer
=
SmartPointer<Self>
;
67
using
ConstPointer
=
SmartPointer<const Self>
;
68
70
itkNewMacro(
Self
);
71
73
itkOverrideGetNameOfClassMacro(
ImageRegionSplitterMultidimensional
);
74
75
protected
:
76
ImageRegionSplitterMultidimensional
();
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::IndexValueType
long IndexValueType
Definition:
itkIntTypes.h:93
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:
itkAnatomicalOrientation.h:29
itk::Object
Base class for most ITK classes.
Definition:
itkObject.h:61
itk::SizeValueType
unsigned long SizeValueType
Definition:
itkIntTypes.h:86
Generated on
unknown
for ITK by
1.8.16