ITK  6.0.0
Insight Toolkit
itkMeanReciprocalSquareDifferencePointSetToImageMetric.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 itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
19#define itkMeanReciprocalSquareDifferencePointSetToImageMetric_h
20
22#include "itkCovariantVector.h"
23#include "itkPoint.h"
24
25namespace itk
26{
45template <typename TFixedPointSet, typename TMovingImage>
47 : public PointSetToImageMetric<TFixedPointSet, TMovingImage>
48{
49public:
51
57
59 itkNewMacro(Self);
60
63
65 using typename Superclass::RealType;
66 using typename Superclass::TransformType;
67 using typename Superclass::TransformPointer;
68 using typename Superclass::TransformParametersType;
69 using typename Superclass::TransformJacobianType;
70 using typename Superclass::InputPointType;
71 using typename Superclass::OutputPointType;
72 using typename Superclass::GradientPixelType;
73
74 using typename Superclass::MeasureType;
75 using typename Superclass::DerivativeType;
76 using typename Superclass::FixedPointSetType;
77 using typename Superclass::MovingImageType;
78 using typename Superclass::FixedPointSetConstPointer;
79 using typename Superclass::MovingImageConstPointer;
80
81 using typename Superclass::PointIterator;
82 using typename Superclass::PointDataIterator;
83
85 void
86 GetDerivative(const TransformParametersType & parameters, DerivativeType & derivative) const override;
87
90 GetValue(const TransformParametersType & parameters) const override;
91
93 void
95 MeasureType & value,
96 DerivativeType & derivative) const override;
97
100 itkSetMacro(Lambda, double);
101 itkGetConstMacro(Lambda, double);
104protected:
107 void
108 PrintSelf(std::ostream & os, Indent indent) const override;
109
110private:
111 double m_Lambda{};
112};
113} // end namespace itk
114
115#ifndef ITK_MANUAL_INSTANTIATION
116# include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.hxx"
117#endif
118
119#endif
Array class with size defined at construction time.
Definition: itkArray.h:48
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Computes similarity between pixel values of a point set and intensity values in an image.
void PrintSelf(std::ostream &os, Indent indent) const override
MeasureType GetValue(const TransformParametersType &parameters) const override
void GetDerivative(const TransformParametersType &parameters, DerivativeType &derivative) const override
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &value, DerivativeType &derivative) const override
Computes similarity between a point set and an image.
typename TransformType::ParametersType TransformParametersType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....