ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * https://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
25namespace itk
26{
40template <typename TFixedPointSet, typename TMovingImage>
41class ITK_TEMPLATE_EXPORT MeanSquaresPointSetToImageMetric : public PointSetToImageMetric<TFixedPointSet, TMovingImage>
42{
43public:
44 ITK_DISALLOW_COPY_AND_MOVE(MeanSquaresPointSetToImageMetric);
45
51
53 itkNewMacro(Self);
54
56 itkOverrideGetNameOfClassMacro(MeanSquaresPointSetToImageMetric);
57
59 using typename Superclass::RealType;
60 using typename Superclass::TransformType;
61 using typename Superclass::TransformPointer;
64 using typename Superclass::GradientPixelType;
65 using typename Superclass::InputPointType;
66 using typename Superclass::OutputPointType;
67
68 using typename Superclass::MeasureType;
69 using typename Superclass::DerivativeType;
70 using typename Superclass::FixedPointSetType;
71 using typename Superclass::MovingImageType;
74
75 using typename Superclass::PointIterator;
76 using 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
89 MeasureType & value,
90 DerivativeType & derivative) const override;
91
92protected:
95};
96} // end namespace itk
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "itkMeanSquaresPointSetToImageMetric.hxx"
100#endif
101
102#endif
void GetDerivative(const TransformParametersType &parameters, DerivativeType &derivative) const override
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &value, DerivativeType &derivative) const override
MeasureType GetValue(const TransformParametersType &parameters) const override
~MeanSquaresPointSetToImageMetric() override=default
typename TransformType::ParametersType TransformParametersType
PointSetToImageMetric< TFixedPointSet, TMovingImage > Superclass
typename TransformType::InputPointType InputPointType
Superclass::MeasureType MeasureType
typename TransformType::Pointer TransformPointer
typename MovingImageType::ConstPointer MovingImageConstPointer
Superclass::DerivativeType DerivativeType
Transform< CoordinateRepresentationType, Self::MovingImageDimension, Self::FixedPointSetDimension > TransformType
CovariantVector< RealType, Self::MovingImageDimension > GradientPixelType
typename TransformType::JacobianType TransformJacobianType
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
typename FixedPointSetType::PointDataContainer::ConstIterator PointDataIterator
typename NumericTraits< MovingImagePixelType >::RealType RealType
typename FixedPointSetType::PointsContainer::ConstIterator PointIterator
typename TransformType::ParametersType TransformParametersType
typename TransformType::OutputPointType OutputPointType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....