ITK  6.0.0
Insight Toolkit
itkDemonsImageToImageMetricv4GetValueAndDerivativeThreader.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 itkDemonsImageToImageMetricv4GetValueAndDerivativeThreader_h
19#define itkDemonsImageToImageMetricv4GetValueAndDerivativeThreader_h
20
22
23namespace itk
24{
25
32template <typename TDomainPartitioner, typename TImageToImageMetric, typename TDemonsMetric>
34 : public ImageToImageMetricv4GetValueAndDerivativeThreader<TDomainPartitioner, TImageToImageMetric>
35{
36public:
38
44
46
47 itkNewMacro(Self);
48
49 using typename Superclass::DomainType;
50 using typename Superclass::AssociateType;
51
52 using ImageToImageMetricv4Type = typename Superclass::ImageToImageMetricv4Type;
53 using typename Superclass::VirtualPointType;
54 using typename Superclass::VirtualIndexType;
55 using typename Superclass::FixedImagePointType;
56 using typename Superclass::FixedImagePixelType;
57 using typename Superclass::FixedImageGradientType;
58 using typename Superclass::MovingImagePointType;
59 using typename Superclass::MovingImagePixelType;
60 using typename Superclass::MovingImageGradientType;
61 using typename Superclass::MeasureType;
62 using typename Superclass::DerivativeType;
63 using typename Superclass::DerivativeValueType;
64 using typename Superclass::InternalComputationValueType;
65 using typename Superclass::NumberOfParametersType;
66 using typename Superclass::ImageDimensionType;
67
68protected:
70 : m_DemonsAssociate(nullptr)
71 {}
72
76 void
78
82 bool
83 ProcessPoint(const VirtualIndexType & virtualIndex,
84 const VirtualPointType & virtualPoint,
85 const FixedImagePointType & mappedFixedPoint,
86 const FixedImagePixelType & fixedImageValue,
87 const FixedImageGradientType & fixedImageGradient,
88 const MovingImagePointType & mappedMovingPoint,
89 const MovingImagePixelType & movingImageValue,
90 const MovingImageGradientType & movingImageGradient,
91 MeasureType & metricValueReturn,
92 DerivativeType & localDerivativeReturn,
93 const ThreadIdType threadId) const override;
94
95private:
98 TDemonsMetric * m_DemonsAssociate{};
99};
100
101} // end namespace itk
102
103#ifndef ITK_MANUAL_INSTANTIATION
104# include "itkDemonsImageToImageMetricv4GetValueAndDerivativeThreader.hxx"
105#endif
106
107#endif
Processes points for DemonsImageToImageMetricv4 GetValueAndDerivative.
bool ProcessPoint(const VirtualIndexType &virtualIndex, const VirtualPointType &virtualPoint, const FixedImagePointType &mappedFixedPoint, const FixedImagePixelType &fixedImageValue, const FixedImageGradientType &fixedImageGradient, const MovingImagePointType &mappedMovingPoint, const MovingImagePixelType &movingImageValue, const MovingImageGradientType &movingImageGradient, MeasureType &metricValueReturn, DerivativeType &localDerivativeReturn, const ThreadIdType threadId) const override
Provides threading for ImageToImageMetricv4::GetValueAndDerivative.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
Definition: itkIntTypes.h:102