ITK  4.13.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 ITK_TEMPLATE_EXPORT 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  ITK_DISALLOW_COPY_AND_ASSIGN(JointHistogramMutualInformationComputeJointPDFThreader);
84 };
85 
90 template < typename TJointHistogramMetric >
92  : public JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >
93 {
94 public:
101 
103 
104  itkNewMacro( Self );
105 
107  typedef typename Superclass::DomainType DomainType;
108  typedef typename Superclass::AssociateType AssociateType;
109 
110  typedef typename Superclass::VirtualImageType VirtualImageType;
111  typedef typename Superclass::VirtualIndexType VirtualIndexType;
112  typedef typename Superclass::VirtualPointType VirtualPointType;
113 
114  typedef TJointHistogramMetric JointHistogramMetricType;
115  typedef typename JointHistogramMetricType::VirtualPointSetType VirtualPointSetType;
116 
117 protected:
119 
121  virtual void ThreadedExecution( const DomainType & subdomain,
122  const ThreadIdType threadId ) ITK_OVERRIDE;
123 
124 private:
125  ITK_DISALLOW_COPY_AND_ASSIGN(JointHistogramMutualInformationComputeJointPDFThreader);
126 };
127 } // end namespace itk
128 
129 #endif
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
133 #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