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