ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkMeanReciprocalSquareDifferencePointSetToImageMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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_ASSIGN(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 GetDerivative(const TransformParametersType & parameters,
86  DerivativeType & Derivative) const override;
87 
89  MeasureType GetValue(const TransformParametersType & parameters) const override;
90 
92  void GetValueAndDerivative(const TransformParametersType & parameters,
93  MeasureType & Value, DerivativeType & Derivative) const override;
94 
97  itkSetMacro(Lambda, double);
98  itkGetConstMacro(Lambda, double);
100 
101 protected:
104  void PrintSelf(std::ostream & os, Indent indent) const override;
105 
106 private:
107  double m_Lambda;
108 };
109 } // end namespace itk
110 
111 #ifndef ITK_MANUAL_INSTANTIATION
112 #include "itkMeanReciprocalSquareDifferencePointSetToImageMetric.hxx"
113 #endif
114 
115 #endif
Array class with size defined at construction time.
Definition: itkArray.h:46
Light weight base class for most itk classes.
Computes similarity between a point set and an image.
Computes similarity between pixel values of a point set and intensity values in an image...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60