ITK  5.0.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:
56  ITK_DISALLOW_COPY_AND_ASSIGN(JointHistogramMutualInformationComputeJointPDFThreader);
57 
60  using Superclass =
64 
66 
67  itkNewMacro( Self );
68 
70  using DomainType = typename Superclass::DomainType;
71  using AssociateType = typename Superclass::AssociateType;
72 
73  using VirtualImageType = typename Superclass::VirtualImageType;
74  using VirtualIndexType = typename Superclass::VirtualIndexType;
75  using VirtualPointType = typename Superclass::VirtualPointType;
76 
77 protected:
79 
81  void ThreadedExecution( const DomainType & subdomain,
82  const ThreadIdType threadId ) override;
83 };
84 
89 template < typename TJointHistogramMetric >
91  : public JointHistogramMutualInformationComputeJointPDFThreaderBase< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >
92 {
93 public:
94  ITK_DISALLOW_COPY_AND_ASSIGN(JointHistogramMutualInformationComputeJointPDFThreader);
95 
98  using Superclass =
102 
104 
105  itkNewMacro( Self );
106 
108  using DomainType = typename Superclass::DomainType;
109  using AssociateType = typename Superclass::AssociateType;
110 
111  using VirtualImageType = typename Superclass::VirtualImageType;
112  using VirtualIndexType = typename Superclass::VirtualIndexType;
113  using VirtualPointType = typename Superclass::VirtualPointType;
114 
115  using JointHistogramMetricType = TJointHistogramMetric;
116  using VirtualPointSetType = typename JointHistogramMetricType::VirtualPointSetType;
117 
118 protected:
120 
122  void ThreadedExecution( const DomainType & subdomain,
123  const ThreadIdType threadId ) override;
124 };
125 } // end namespace itk
126 
127 #endif
128 
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
131 #endif
Light weight base class for most itk classes.
Class for partitioning of an ImageRegion.
Provide a threaded computation of the joint PDF for JointHistogramMutualInformationImageToImageMetric...
unsigned int ThreadIdType
Definition: itkIntTypes.h:99