ITK  5.2.0
Insight Toolkit
itkMeanSquaresPointSetToImageMetric.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 itkMeanSquaresPointSetToImageMetric_h
19 #define itkMeanSquaresPointSetToImageMetric_h
20 
22 #include "itkCovariantVector.h"
23 #include "itkPoint.h"
24 
25 namespace itk
26 {
40 template <typename TFixedPointSet, typename TMovingImage>
41 class ITK_TEMPLATE_EXPORT MeanSquaresPointSetToImageMetric : public PointSetToImageMetric<TFixedPointSet, TMovingImage>
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(MeanSquaresPointSetToImageMetric);
45 
51 
53  itkNewMacro(Self);
54 
57 
59  using RealType = typename Superclass::RealType;
60  using TransformType = typename Superclass::TransformType;
61  using TransformPointer = typename Superclass::TransformPointer;
62  using TransformParametersType = typename Superclass::TransformParametersType;
63  using TransformJacobianType = typename Superclass::TransformJacobianType;
64  using GradientPixelType = typename Superclass::GradientPixelType;
65  using InputPointType = typename Superclass::InputPointType;
66  using OutputPointType = typename Superclass::OutputPointType;
67 
68  using MeasureType = typename Superclass::MeasureType;
69  using DerivativeType = typename Superclass::DerivativeType;
70  using FixedPointSetType = typename Superclass::FixedPointSetType;
71  using MovingImageType = typename Superclass::MovingImageType;
72  using FixedPointSetConstPointer = typename Superclass::FixedPointSetConstPointer;
73  using MovingImageConstPointer = typename Superclass::MovingImageConstPointer;
74 
75  using PointIterator = typename Superclass::PointIterator;
76  using PointDataIterator = typename Superclass::PointDataIterator;
77 
79  void
80  GetDerivative(const TransformParametersType & parameters, DerivativeType & Derivative) const override;
81 
84  GetValue(const TransformParametersType & parameters) const override;
85 
87  void
88  GetValueAndDerivative(const TransformParametersType & parameters,
89  MeasureType & Value,
90  DerivativeType & Derivative) const override;
91 
92 protected:
94  ~MeanSquaresPointSetToImageMetric() override = default;
95 };
96 } // end namespace itk
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 # include "itkMeanSquaresPointSetToImageMetric.hxx"
100 #endif
101 
102 #endif
itk::MeanSquaresPointSetToImageMetric::TransformParametersType
typename Superclass::TransformParametersType TransformParametersType
Definition: itkMeanSquaresPointSetToImageMetric.h:62
itk::SingleValuedCostFunction::MeasureType
double MeasureType
Definition: itkSingleValuedCostFunction.h:50
itk::MeanSquaresPointSetToImageMetric::TransformPointer
typename Superclass::TransformPointer TransformPointer
Definition: itkMeanSquaresPointSetToImageMetric.h:61
itkCovariantVector.h
itkPoint.h
itk::MeanSquaresPointSetToImageMetric::GradientPixelType
typename Superclass::GradientPixelType GradientPixelType
Definition: itkMeanSquaresPointSetToImageMetric.h:64
itk::MeanSquaresPointSetToImageMetric::FixedPointSetConstPointer
typename Superclass::FixedPointSetConstPointer FixedPointSetConstPointer
Definition: itkMeanSquaresPointSetToImageMetric.h:72
itk::MeanSquaresPointSetToImageMetric::PointDataIterator
typename Superclass::PointDataIterator PointDataIterator
Definition: itkMeanSquaresPointSetToImageMetric.h:76
itk::SmartPointer< Self >
itk::MeanSquaresPointSetToImageMetric::MovingImageConstPointer
typename Superclass::MovingImageConstPointer MovingImageConstPointer
Definition: itkMeanSquaresPointSetToImageMetric.h:73
itk::MeanSquaresPointSetToImageMetric::PointIterator
typename Superclass::PointIterator PointIterator
Definition: itkMeanSquaresPointSetToImageMetric.h:75
itk::MeanSquaresPointSetToImageMetric::OutputPointType
typename Superclass::OutputPointType OutputPointType
Definition: itkMeanSquaresPointSetToImageMetric.h:66
itk::MeanSquaresPointSetToImageMetric::TransformJacobianType
typename Superclass::TransformJacobianType TransformJacobianType
Definition: itkMeanSquaresPointSetToImageMetric.h:63
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::PointSetToImageMetric
Computes similarity between a point set and an image.
Definition: itkPointSetToImageMetric.h:48
itk::MeanSquaresPointSetToImageMetric::RealType
typename Superclass::RealType RealType
Definition: itkMeanSquaresPointSetToImageMetric.h:59
itkPointSetToImageMetric.h
itk::MeanSquaresPointSetToImageMetric::TransformType
typename Superclass::TransformType TransformType
Definition: itkMeanSquaresPointSetToImageMetric.h:60
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::MeanSquaresPointSetToImageMetric::FixedPointSetType
typename Superclass::FixedPointSetType FixedPointSetType
Definition: itkMeanSquaresPointSetToImageMetric.h:70
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:60
itk::MeanSquaresPointSetToImageMetric
Computes similarity between pixel values of a point set and intensity values of an image.
Definition: itkMeanSquaresPointSetToImageMetric.h:41
itk::MeanSquaresPointSetToImageMetric::InputPointType
typename Superclass::InputPointType InputPointType
Definition: itkMeanSquaresPointSetToImageMetric.h:65
itk::MeanSquaresPointSetToImageMetric::MovingImageType
typename Superclass::MovingImageType MovingImageType
Definition: itkMeanSquaresPointSetToImageMetric.h:71