ITK  4.9.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 < typename TDomainPartitioner, typename TJointHistogramMetric >
45 {};
46 
51 template < typename 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 ) ITK_OVERRIDE;
81 
82 private:
83  JointHistogramMutualInformationComputeJointPDFThreader( const Self & ) ITK_DELETE_FUNCTION;
84  void operator=( const Self & ) ITK_DELETE_FUNCTION;
85 };
86 
91 template < typename 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 ) ITK_OVERRIDE;
124 
125 private:
126  JointHistogramMutualInformationComputeJointPDFThreader( const Self & ) ITK_DELETE_FUNCTION;
127  void operator=( const Self & ) ITK_DELETE_FUNCTION;
128 };
129 } // end namespace itk
130 
131 #endif
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
135 #endif
Light weight base class for most itk classes.
Class for partitioning of an ImageRegion.
JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedIndexedContainerPartitioner, TJointHistogramMetric > Superclass
Provide a threaded computation of the joint PDF for JointHistogramMutualInformationImageToImageMetric...
JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric > Superclass
unsigned int ThreadIdType
Definition: itkIntTypes.h:159