ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Core
Common
include
itkThreadedImageRegionPartitioner.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
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 __itkThreadedImageRegionPartitioner_h
19
#define __itkThreadedImageRegionPartitioner_h
20
21
#include "
itkThreadedDomainPartitioner.h
"
22
#include "
itkImageRegion.h
"
23
24
namespace
itk
25
{
26
62
template
<
unsigned
int
VDimension>
63
class
ITK_EXPORT
ThreadedImageRegionPartitioner
64
:
public
ThreadedDomainPartitioner
< ImageRegion<VDimension> >
65
{
66
public
:
68
typedef
ThreadedImageRegionPartitioner
Self
;
69
typedef
ThreadedDomainPartitioner<ImageRegion<VDimension>
>
Superclass
;
70
typedef
SmartPointer<Self>
Pointer
;
71
typedef
SmartPointer<const Self>
ConstPointer
;
72
74
itkNewMacro(
Self
);
75
77
itkTypeMacro(
ThreadedImageRegionPartitioner
,
ThreadedDomainPartitioner
);
78
80
typedef
typename
Superclass::DomainType
DomainType
;
81
83
// typedef TImageRegion ImageRegionType;
84
itkStaticConstMacro(ImageDimension,
unsigned
int
, VDimension);
85
86
typedef
ImageRegion<VDimension>
ImageRegionType
;
87
typedef
Size<VDimension>
SizeType
;
88
typedef
Index<VDimension>
IndexType
;
89
96
virtual
97
ThreadIdType
PartitionDomain(
const
ThreadIdType
i,
98
const
ThreadIdType
requestedTotal,
99
const
DomainType
& completeRegion,
100
DomainType
& subRegion)
const
;
101
102
protected
:
103
ThreadedImageRegionPartitioner
();
104
virtual
~
ThreadedImageRegionPartitioner
();
105
106
private
:
107
ThreadedImageRegionPartitioner
(
const
Self
&);
//purposely not implemented
108
void
operator=(
const
Self
&);
//purposely not implemented
109
};
110
111
}
// end namespace itk
112
113
#ifndef ITK_MANUAL_INSTANTIATION
114
# include "itkThreadedImageRegionPartitioner.hxx"
115
#endif
116
117
#endif
118
Generated on Mon May 13 2013 01:09:53 for ITK by
1.8.3.1