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 
25 namespace itk
26 {
27 
43 template <typename TDomainPartitioner, typename TJointHistogramMetric>
45 
50 template <typename TJointHistogramMetric>
52  ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
53  TJointHistogramMetric>
55  ThreadedImageRegionPartitioner<TJointHistogramMetric::VirtualImageDimension>,
56  TJointHistogramMetric>
57 {
58 public:
60 
65  TJointHistogramMetric>;
68 
69  itkOverrideGetNameOfClassMacro(JointHistogramMutualInformationComputeJointPDFThreader);
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 
81 protected:
83 
85  void
86  ThreadedExecution(const DomainType & imageSubRegion, const ThreadIdType threadId) override;
87 };
88 
93 template <typename TJointHistogramMetric>
94 class ITK_TEMPLATE_EXPORT
96  : public JointHistogramMutualInformationComputeJointPDFThreaderBase<ThreadedIndexedContainerPartitioner,
97  TJointHistogramMetric>
98 {
99 public:
100  ITK_DISALLOW_COPY_AND_MOVE(JointHistogramMutualInformationComputeJointPDFThreader);
101 
105  TJointHistogramMetric>;
108 
109  itkOverrideGetNameOfClassMacro(JointHistogramMutualInformationComputeJointPDFThreader);
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 
124 protected:
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
itkJointHistogramMutualInformationComputeJointPDFThreaderBase.h
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedIndexedContainerPartitioner, TJointHistogramMetric >::JointHistogramMetricType
TJointHistogramMetric JointHistogramMetricType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:121
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:122
itk::ThreadIdType
unsigned int ThreadIdType
Definition: itkIntTypes.h:102
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: itkAnatomicalOrientation.h:29
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:117
itk::JointHistogramMutualInformationComputeJointPDFThreader< ThreadedImageRegionPartitioner< TJointHistogramMetric::VirtualImageDimension >, TJointHistogramMetric >::VirtualImageType
typename Superclass::VirtualImageType VirtualImageType
Definition: itkJointHistogramMutualInformationComputeJointPDFThreader.h:77