ITK  6.0.0
Insight Toolkit
itkJointHistogramMutualInformationComputeJointPDFThreader.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
25namespace itk
26{
27
43template <typename TDomainPartitioner, typename TJointHistogramMetric>
45{};
46
51template <typename TJointHistogramMetric>
53 ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
54 TJointHistogramMetric>
56 ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
57 TJointHistogramMetric>
58{
59public:
61
66 TJointHistogramMetric>;
69
71
72 itkNewMacro(Self);
73
75 using typename Superclass::DomainType;
76 using typename Superclass::AssociateType;
77
78 using VirtualImageType = typename Superclass::VirtualImageType;
79 using typename Superclass::VirtualIndexType;
80 using typename Superclass::VirtualPointType;
81
82protected:
84
86 void
87 ThreadedExecution(const DomainType & imageSubRegion, const ThreadIdType threadId) override;
88};
89
94template <typename TJointHistogramMetric>
95class ITK_TEMPLATE_EXPORT
97 : public JointHistogramMutualInformationComputeJointPDFThreaderBase<ThreadedIndexedContainerPartitioner,
98 TJointHistogramMetric>
99{
100public:
102
106 TJointHistogramMetric>;
109
111
112 itkNewMacro(Self);
113
115 using typename Superclass::DomainType;
116 using typename Superclass::AssociateType;
117
118 using VirtualImageType = typename Superclass::VirtualImageType;
119 using typename Superclass::VirtualIndexType;
120 using typename Superclass::VirtualPointType;
121
122 using JointHistogramMetricType = TJointHistogramMetric;
123 using VirtualPointSetType = typename JointHistogramMetricType::VirtualPointSetType;
124
125protected:
127
129 void
130 ThreadedExecution(const DomainType & indexSubRange, const ThreadIdType threadId) override;
131};
132} // end namespace itk
133
134#ifndef ITK_MANUAL_INSTANTIATION
135# include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
136#endif
137
138#endif
Provide a threaded computation of the joint PDF for JointHistogramMutualInformationImageToImageMetric...
Light weight base class for most itk classes.
Class for partitioning of an ImageRegion.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition: itkIntTypes.h:102