ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageToImageMetricv4GetValueAndDerivativeThreader.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 itkImageToImageMetricv4GetValueAndDerivativeThreader_h
19#define itkImageToImageMetricv4GetValueAndDerivativeThreader_h
20
22#include "itkNumericTraits.h"
25
26namespace itk
27{
28
43template <typename TDomainPartitioner, typename TImageToImageMetricv4>
45
50template <typename TImageToImageMetricv4>
52 ThreadedImageRegionPartitioner<TImageToImageMetricv4::VirtualImageDimension>,
53 TImageToImageMetricv4>
55 ThreadedImageRegionPartitioner<TImageToImageMetricv4::VirtualImageDimension>,
56 TImageToImageMetricv4>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(ImageToImageMetricv4GetValueAndDerivativeThreader);
60
65 TImageToImageMetricv4>;
68
70
72 using typename Superclass::DomainType;
73 using typename Superclass::AssociateType;
74
76 using ImageToImageMetricv4Type = TImageToImageMetricv4;
78 using typename Superclass::VirtualIndexType;
79 using typename Superclass::VirtualPointType;
86
87 using typename Superclass::FixedTransformType;
91
92 using typename Superclass::MeasureType;
93 using typename Superclass::DerivativeType;
95 using typename Superclass::JacobianType;
96
99 using typename Superclass::ImageDimensionType;
100
101protected:
104
107 void
108 ThreadedExecution(const DomainType & imageSubRegion, const ThreadIdType threadId) override;
109
116 {
117 return this->m_CachedNumberOfParameters;
118 }
119 inline NumberOfParametersType
124
125};
126
131template <typename TImageToImageMetricv4>
132class ITK_TEMPLATE_EXPORT
134 : public ImageToImageMetricv4GetValueAndDerivativeThreaderBase<ThreadedIndexedContainerPartitioner,
135 TImageToImageMetricv4>
136{
137public:
138 ITK_DISALLOW_COPY_AND_MOVE(ImageToImageMetricv4GetValueAndDerivativeThreader);
139
146
148
150 using typename Superclass::DomainType;
151 using typename Superclass::AssociateType;
152
156 using typename Superclass::VirtualIndexType;
157 using typename Superclass::VirtualPointType;
158 using typename Superclass::FixedImagePointType;
159 using typename Superclass::FixedImagePixelType;
164
165 using typename Superclass::FixedTransformType;
167 using typename Superclass::MovingTransformType;
169
170 using typename Superclass::MeasureType;
171 using typename Superclass::DerivativeType;
172 using typename Superclass::DerivativeValueType;
173 using typename Superclass::JacobianType;
174
177
178protected:
181
184 void
185 ThreadedExecution(const DomainType & indexSubRange, const ThreadIdType threadId) override;
186
193 {
194 return this->m_CachedNumberOfParameters;
195 }
196 inline NumberOfParametersType
201
202};
203
204} // end namespace itk
205
206#ifndef ITK_MANUAL_INSTANTIATION
207# include "itkImageToImageMetricv4GetValueAndDerivativeThreader.hxx"
208#endif
209
210#endif
typename DomainPartitionerType::DomainType DomainType
ImageToImageMetricv4GetValueAndDerivativeThreaderBase< ThreadedImageRegionPartitioner< TImageToImageMetricv4::VirtualImageDimension >, TImageToImageMetricv4 > Superclass
void ThreadedExecution(const DomainType &indexSubRange, const ThreadIdType threadId) override
ImageToImageMetricv4GetValueAndDerivativeThreaderBase< ThreadedIndexedContainerPartitioner, TImageToImageMetricv4 > Superclass
Provides threading for ImageToImageMetricv4::GetValueAndDerivative.
Implements transparent reference counting.
Class for partitioning of an ImageRegion.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType