ITK  4.3.0
Insight Segmentation and Registration Toolkit
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 
22 #include "itkImageRegion.h"
23 
24 namespace itk
25 {
26 
62 template <unsigned int VDimension>
64  : public ThreadedDomainPartitioner< ImageRegion<VDimension> >
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
80  typedef typename Superclass::DomainType DomainType;
81 
83  // typedef TImageRegion ImageRegionType;
84  itkStaticConstMacro(ImageDimension, unsigned int, VDimension);
85 
89 
96  virtual
97  ThreadIdType PartitionDomain(const ThreadIdType i,
98  const ThreadIdType requestedTotal,
99  const DomainType& completeRegion,
100  DomainType& subRegion) const;
101 
102 protected:
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