ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkMeanSquaresPointSetToImageMetric.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 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:
42  public PointSetToImageMetric< TFixedPointSet, TMovingImage >
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_ASSIGN(MeanSquaresPointSetToImageMetric);
46 
52 
54  itkNewMacro(Self);
55 
58 
60  using RealType = typename Superclass::RealType;
61  using TransformType = typename Superclass::TransformType;
62  using TransformPointer = typename Superclass::TransformPointer;
63  using TransformParametersType = typename Superclass::TransformParametersType;
64  using TransformJacobianType = typename Superclass::TransformJacobianType;
65  using GradientPixelType = typename Superclass::GradientPixelType;
66  using InputPointType = typename Superclass::InputPointType;
67  using OutputPointType = typename Superclass::OutputPointType;
68 
69  using MeasureType = typename Superclass::MeasureType;
70  using DerivativeType = typename Superclass::DerivativeType;
71  using FixedPointSetType = typename Superclass::FixedPointSetType;
72  using MovingImageType = typename Superclass::MovingImageType;
73  using FixedPointSetConstPointer = typename Superclass::FixedPointSetConstPointer;
74  using MovingImageConstPointer = typename Superclass::MovingImageConstPointer;
75 
76  using PointIterator = typename Superclass::PointIterator;
77  using PointDataIterator = typename Superclass::PointDataIterator;
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 
90 protected:
92  ~MeanSquaresPointSetToImageMetric() override = default;
93 };
94 } // end namespace itk
95 
96 #ifndef ITK_MANUAL_INSTANTIATION
97 #include "itkMeanSquaresPointSetToImageMetric.hxx"
98 #endif
99 
100 #endif
Array class with size defined at construction time.
Definition: itkArray.h:46
typename Superclass::InputPointType InputPointType
Light weight base class for most itk classes.
typename Superclass::FixedPointSetConstPointer FixedPointSetConstPointer
typename Superclass::GradientPixelType GradientPixelType
typename Superclass::OutputPointType OutputPointType
typename Superclass::MovingImageConstPointer MovingImageConstPointer
typename Superclass::MovingImageType MovingImageType
Computes similarity between a point set and an image.
Computes similarity between pixel values of a point set and intensity values of an image...
typename Superclass::TransformJacobianType TransformJacobianType
typename Superclass::TransformPointer TransformPointer
typename Superclass::PointDataIterator PointDataIterator
Base class for most ITK classes.
Definition: itkObject.h:60
typename Superclass::FixedPointSetType FixedPointSetType
typename Superclass::TransformParametersType TransformParametersType