ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkJointHistogramMutualInformationComputeJointPDFThreader.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 __itkJointHistogramMutualInformationComputeJointPDFThreader_h
19 #define __itkJointHistogramMutualInformationComputeJointPDFThreader_h
20 
24 
25 namespace itk
26 {
27 
43 template < class TDomainPartitioner, class TJointHistogramMetric >
45 {};
46 
51 template < class TJointHistogramMetric >
52 class JointHistogramMutualInformationComputeJointPDFThreader< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric >
53  : public JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric >
54 {
55 public:
62 
64 
65  itkNewMacro( Self );
66 
68  typedef typename Superclass::DomainType DomainType;
69  typedef typename Superclass::AssociateType AssociateType;
70 
71  typedef typename Superclass::VirtualImageType VirtualImageType;
72  typedef typename Superclass::VirtualIndexType VirtualIndexType;
73  typedef typename Superclass::VirtualPointType VirtualPointType;
74 
75 protected:
77 
79  virtual void ThreadedExecution( const DomainType & subdomain,
80  const ThreadIdType threadId );
81 
82 private:
83  JointHistogramMutualInformationComputeJointPDFThreader( const Self & ); // purposely not implemented
84  void operator=( const Self & ); // purposely not implemented
85 };
86 
91 template < class TJointHistogramMetric >
93  : public JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >
94 {
95 public:
102 
104 
105  itkNewMacro( Self );
106 
108  typedef typename Superclass::DomainType DomainType;
109  typedef typename Superclass::AssociateType AssociateType;
110 
111  typedef typename Superclass::VirtualImageType VirtualImageType;
112  typedef typename Superclass::VirtualIndexType VirtualIndexType;
113  typedef typename Superclass::VirtualPointType VirtualPointType;
114 
115  typedef TJointHistogramMetric JointHistogramMetricType;
116  typedef typename JointHistogramMetricType::VirtualPointSetType VirtualPointSetType;
117 
118 protected:
120 
122  virtual void ThreadedExecution( const DomainType & subdomain,
123  const ThreadIdType threadId );
124 
125 private:
126  JointHistogramMutualInformationComputeJointPDFThreader( const Self & ); // purposely not implemented
127  void operator=( const Self & ); // purposely not implemented
128 };
129 } // end namespace itk
130 
131 #endif
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
135 #endif
136