ITK  5.2.0
Insight Toolkit
itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.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  * http://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 itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader_h
19 #define itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader_h
20 
22 
23 namespace itk
24 {
25 
32 template <typename TDomainPartitioner, typename TImageToImageMetric, typename TMeanSquaresMetric>
34  : public ImageToImageMetricv4GetValueAndDerivativeThreader<TDomainPartitioner, TImageToImageMetric>
35 {
36 public:
38 
44 
47 
48  itkNewMacro(Self);
49 
50  using DomainType = typename Superclass::DomainType;
51  using AssociateType = typename Superclass::AssociateType;
52 
53  using ImageToImageMetricv4Type = typename Superclass::ImageToImageMetricv4Type;
54  using VirtualPointType = typename Superclass::VirtualPointType;
55  using VirtualIndexType = typename Superclass::VirtualIndexType;
56  using FixedImagePointType = typename Superclass::FixedImagePointType;
57  using FixedImagePixelType = typename Superclass::FixedImagePixelType;
58  using FixedImageGradientType = typename Superclass::FixedImageGradientType;
59  using MovingImagePointType = typename Superclass::MovingImagePointType;
60  using MovingImagePixelType = typename Superclass::MovingImagePixelType;
61  using MovingImageGradientType = typename Superclass::MovingImageGradientType;
62  using MeasureType = typename Superclass::MeasureType;
63  using DerivativeType = typename Superclass::DerivativeType;
64  using DerivativeValueType = typename Superclass::DerivativeValueType;
65  using NumberOfParametersType = typename Superclass::NumberOfParametersType;
66 
67 protected:
69 
73  bool
74  ProcessPoint(const VirtualIndexType & virtualIndex,
75  const VirtualPointType & virtualPoint,
76  const FixedImagePointType & mappedFixedPoint,
77  const FixedImagePixelType & fixedImageValue,
78  const FixedImageGradientType & mappedFixedImageGradient,
79  const MovingImagePointType & mappedMovingPoint,
80  const MovingImagePixelType & movingImageValue,
81  const MovingImageGradientType & movingImageGradient,
82  MeasureType & metricValueReturn,
83  DerivativeType & localDerivativeReturn,
84  const ThreadIdType threadId) const override;
85 };
86 
87 } // end namespace itk
88 
89 #ifndef ITK_MANUAL_INSTANTIATION
90 # include "itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.hxx"
91 #endif
92 
93 #endif
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::MovingImagePixelType
typename Superclass::MovingImagePixelType MovingImagePixelType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:60
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::ImageToImageMetricv4Type
typename Superclass::ImageToImageMetricv4Type ImageToImageMetricv4Type
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:53
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::FixedImageGradientType
typename Superclass::FixedImageGradientType FixedImageGradientType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:58
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::MeasureType
typename Superclass::MeasureType MeasureType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:62
itk::ImageToImageMetricv4GetValueAndDerivativeThreader
Provides threading for ImageToImageMetricv4::GetValueAndDerivative.
Definition: itkImageToImageMetricv4GetValueAndDerivativeThreader.h:44
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::DomainType
typename Superclass::DomainType DomainType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:50
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader
Processes points for MeanSquaresImageToImageMetricv4 GetValueAndDerivative.
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:33
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::DerivativeValueType
typename Superclass::DerivativeValueType DerivativeValueType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:64
itkImageToImageMetricv4GetValueAndDerivativeThreader.h
itk::SmartPointer< Self >
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::FixedImagePixelType
typename Superclass::FixedImagePixelType FixedImagePixelType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:57
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::FixedImagePointType
typename Superclass::FixedImagePointType FixedImagePointType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:56
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::VirtualPointType
typename Superclass::VirtualPointType VirtualPointType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:54
itk::ThreadIdType
unsigned int ThreadIdType
Definition: itkIntTypes.h:99
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::MovingImageGradientType
typename Superclass::MovingImageGradientType MovingImageGradientType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:61
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::MovingImagePointType
typename Superclass::MovingImagePointType MovingImagePointType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:59
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::NumberOfParametersType
typename Superclass::NumberOfParametersType NumberOfParametersType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:65
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::VirtualIndexType
typename Superclass::VirtualIndexType VirtualIndexType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:55
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::DerivativeType
typename Superclass::DerivativeType DerivativeType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:63
itk::MeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader::AssociateType
typename Superclass::AssociateType AssociateType
Definition: itkMeanSquaresImageToImageMetricv4GetValueAndDerivativeThreader.h:51