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
50template <typename TJointHistogramMetric>
52 ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
53 TJointHistogramMetric>
55 ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
56 TJointHistogramMetric>
57{
58public:
60
65 TJointHistogramMetric>;
68
70
71 itkNewMacro(Self);
72
74 using typename Superclass::DomainType;
75 using typename Superclass::AssociateType;
76
77 using VirtualImageType = typename Superclass::VirtualImageType;
78 using typename Superclass::VirtualIndexType;
79 using typename Superclass::VirtualPointType;
80
81protected:
83
85 void
86 ThreadedExecution(const DomainType & imageSubRegion, const ThreadIdType threadId) override;
87};
88
93template <typename TJointHistogramMetric>
94class ITK_TEMPLATE_EXPORT
96 : public JointHistogramMutualInformationComputeJointPDFThreaderBase<ThreadedIndexedContainerPartitioner,
97 TJointHistogramMetric>
98{
99public:
101
105 TJointHistogramMetric>;
108
110
111 itkNewMacro(Self);
112
114 using typename Superclass::DomainType;
115 using typename Superclass::AssociateType;
116
117 using VirtualImageType = typename Superclass::VirtualImageType;
118 using typename Superclass::VirtualIndexType;
119 using typename Superclass::VirtualPointType;
120
121 using JointHistogramMetricType = TJointHistogramMetric;
122 using VirtualPointSetType = typename JointHistogramMetricType::VirtualPointSetType;
123
124protected:
126
128 void
129 ThreadedExecution(const DomainType & indexSubRange, const ThreadIdType threadId) override;
130};
131} // end namespace itk
132
133#ifndef ITK_MANUAL_INSTANTIATION
134# include "itkJointHistogramMutualInformationComputeJointPDFThreader.hxx"
135#endif
136
137#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