ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkMeanReciprocalSquareDifferenceImageToImageMetric.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 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_ASSIGN(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 GetDerivative(const TransformParametersType & parameters,
81  DerivativeType & derivative) const override;
82 
84  MeasureType GetValue(const TransformParametersType & parameters) const override;
85 
87  void GetValueAndDerivative(const TransformParametersType & parameters,
88  MeasureType & Value, DerivativeType & derivative) const override;
89 
92  itkGetConstMacro(Lambda, double);
93  itkSetMacro(Lambda, double);
95 
98  itkGetConstMacro(Delta, double);
99  itkSetMacro(Delta, double);
101 
102 protected:
105  void PrintSelf(std::ostream & os, Indent indent) const override;
106 
107 private:
108  double m_Lambda;
109  double m_Delta;
110 };
111 } // end namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkMeanReciprocalSquareDifferenceImageToImageMetric.hxx"
115 #endif
116 
117 #endif
Array class with size defined at construction time.
Definition: itkArray.h:46
Light weight base class for most itk classes.
typename TransformType::InputPointType InputPointType
typename TransformType::JacobianType TransformJacobianType
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
typename TransformType::ParametersType TransformParametersType
typename TransformType::OutputPointType OutputPointType
typename FixedImageType::ConstPointer FixedImageConstPointer
typename TransformType::Pointer TransformPointer
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Computes similarity between regions of two images.
typename MovingImageType::ConstPointer MovingImageConstPointer