ITK  5.4.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 
25 namespace itk
26 {
27 
43 template <typename TDomainPartitioner, typename TJointHistogramMetric>
45 {};
46 
51 template <typename TJointHistogramMetric>
53  ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
54  TJointHistogramMetric>
56  ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
57  TJointHistogramMetric>
58 {
59 public:
61 
66  TJointHistogramMetric>;
69 
70  itkOverrideGetNameOfClassMacro(JointHistogramMutualInformationComputeJointPDFThreader);
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 
82 protected:
84 
86  void
87  ThreadedExecution(const DomainType & imageSubRegion, const ThreadIdType threadId) override;
88 };
89 
94 template <typename TJointHistogramMetric>
95 class ITK_TEMPLATE_EXPORT
97  : public JointHistogramMutualInformationComputeJointPDFThreaderBase<ThreadedIndexedContainerPartitioner,
98  TJointHistogramMetric>
99 {
100 public:
101  ITK_DISALLOW_COPY_AND_MOVE(JointHistogramMutualInformationComputeJointPDFThreader);
102 
106  TJointHistogramMetric>;
109 
110  itkOverrideGetNameOfClassMacro(JointHistogramMutualInformationComputeJointPDFThreader);
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 
125 protected:
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
itkJointHistogramMutualInformationComputeJointPDFThreaderBase.h
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >::JointHistogramMetricType
TJointHistogramMetric JointHistogramMetricType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:122
itkThreadedIndexedContainerPartitioner.h
itk::ThreadedImageRegionPartitioner
Class for partitioning of an ImageRegion.
Definition: itkThreadedImageRegionPartitioner.h:45
itk::ThreadedIndexedContainerPartitioner
Partitions an indexed container.
Definition: itkThreadedIndexedContainerPartitioner.h:45
itk::SmartPointer< Self >
itk::JointHistogramMutualInformationComputeJointPDFThreaderBase
Compute the JointPDF image.
Definition: itkJointHistogramMutualInformationComputeJointPDFThreaderBase.h:38
itkThreadedImageRegionPartitioner.h
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >::VirtualPointSetType
typename JointHistogramMetricType::VirtualPointSetType VirtualPointSetType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:123
itk::ThreadIdType
unsigned int ThreadIdType
Definition: itkIntTypes.h:99
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::DomainThreader< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric >::DomainType
typename DomainPartitionerType::DomainType DomainType
Definition: itkDomainThreader.h:78
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::JointHistogramMutualInformationComputeJointPDFThreader
Provide a threaded computation of the joint PDF for JointHistogramMutualInformationImageToImageMetric...
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:44
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >::VirtualImageType
typename Superclass::VirtualImageType VirtualImageType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:118
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric >::VirtualImageType
typename Superclass::VirtualImageType VirtualImageType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:78