ITK  5.2.0
Insight Toolkit
itkMeanReciprocalSquareDifferenceImageToImageMetric.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 itkMeanReciprocalSquareDifferenceImageToImageMetric_h
19 #define itkMeanReciprocalSquareDifferenceImageToImageMetric_h
20 
21 #include "itkImageToImageMetric.h"
22 #include "itkPoint.h"
23 
24 namespace itk
25 {
45 template <typename TFixedImage, typename TMovingImage>
47  : public ImageToImageMetric<TFixedImage, TMovingImage>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_MOVE(MeanReciprocalSquareDifferenceImageToImageMetric);
51 
57 
59  itkNewMacro(Self);
60 
63 
65  using TransformType = typename Superclass::TransformType;
66  using TransformPointer = typename Superclass::TransformPointer;
67  using TransformParametersType = typename Superclass::TransformParametersType;
68  using TransformJacobianType = typename Superclass::TransformJacobianType;
69  using InputPointType = typename Superclass::InputPointType;
70  using OutputPointType = typename Superclass::OutputPointType;
71 
72  using MeasureType = typename Superclass::MeasureType;
73  using DerivativeType = typename Superclass::DerivativeType;
74  using FixedImageType = typename Superclass::FixedImageType;
75  using MovingImageType = typename Superclass::MovingImageType;
76  using FixedImageConstPointer = typename Superclass::FixedImageConstPointer;
77  using MovingImageConstPointer = typename Superclass::MovingImageConstPointer;
78 
80  void
81  GetDerivative(const TransformParametersType & parameters, DerivativeType & derivative) const override;
82 
85  GetValue(const TransformParametersType & parameters) const override;
86 
88  void
89  GetValueAndDerivative(const TransformParametersType & parameters,
90  MeasureType & Value,
91  DerivativeType & Derivative) const override;
92 
95  itkGetConstMacro(Lambda, double);
96  itkSetMacro(Lambda, double);
98 
101  itkGetConstMacro(Delta, double);
102  itkSetMacro(Delta, double);
104 
105 protected:
108  void
109  PrintSelf(std::ostream & os, Indent indent) const override;
110 
111 private:
112  double m_Lambda;
113  double m_Delta;
114 };
115 } // end namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 # include "itkMeanReciprocalSquareDifferenceImageToImageMetric.hxx"
119 #endif
120 
121 #endif
itk::ImageToImageMetric::FixedImageConstPointer
typename FixedImageType::ConstPointer FixedImageConstPointer
Definition: itkImageToImageMetric.h:77
itk::ImageToImageMetric
Computes similarity between regions of two images.
Definition: itkImageToImageMetric.h:52
itk::SingleValuedCostFunction::MeasureType
double MeasureType
Definition: itkSingleValuedCostFunction.h:50
itk::ImageToImageMetric::TransformParametersType
typename TransformType::ParametersType TransformParametersType
Definition: itkImageToImageMetric.h:90
itkPoint.h
itk::ImageToImageMetric::TransformJacobianType
typename TransformType::JacobianType TransformJacobianType
Definition: itkImageToImageMetric.h:91
itk::ImageToImageMetric::FixedImageType
TFixedImage FixedImageType
Definition: itkImageToImageMetric.h:75
itk::ImageToImageMetric::OutputPointType
typename TransformType::OutputPointType OutputPointType
Definition: itkImageToImageMetric.h:89
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToImageMetric::InputPointType
typename TransformType::InputPointType InputPointType
Definition: itkImageToImageMetric.h:88
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkImageToImageMetric.h
itk::ImageToImageMetric::MovingImageConstPointer
typename MovingImageType::ConstPointer MovingImageConstPointer
Definition: itkImageToImageMetric.h:72
itk::MeanReciprocalSquareDifferenceImageToImageMetric::m_Delta
double m_Delta
Definition: itkMeanReciprocalSquareDifferenceImageToImageMetric.h:113
itk::ImageToImageMetric::TransformPointer
typename TransformType::Pointer TransformPointer
Definition: itkImageToImageMetric.h:87
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ImageToImageMetric::MovingImageType
TMovingImage MovingImageType
Definition: itkImageToImageMetric.h:70
itk::Array
Array class with size defined at construction time.
Definition: itkArray.h:47
itk::Transform
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
itk::MeanReciprocalSquareDifferenceImageToImageMetric::m_Lambda
double m_Lambda
Definition: itkMeanReciprocalSquareDifferenceImageToImageMetric.h:112
itk::MeanReciprocalSquareDifferenceImageToImageMetric
Computes similarity between two objects to be registered.
Definition: itkMeanReciprocalSquareDifferenceImageToImageMetric.h:46