ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkEuclideanSquareDistanceMetric.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 itkEuclideanSquareDistanceMetric_h
19#define itkEuclideanSquareDistanceMetric_h
20
21#include "itkDistanceMetric.h"
22
23namespace itk::Statistics
24{
34template <typename TVector>
35class ITK_TEMPLATE_EXPORT EuclideanSquareDistanceMetric : public DistanceMetric<TVector>
36{
37public:
43
46
48 itkOverrideGetNameOfClassMacro(EuclideanSquareDistanceMetric);
49
51 itkNewMacro(Self);
52
54 double
55 Evaluate(const MeasurementVectorType & x) const override;
56
58 double
59 Evaluate(const MeasurementVectorType & x1, const MeasurementVectorType & x2) const override;
60
61protected:
63 ~EuclideanSquareDistanceMetric() override = default;
64}; // end of class
65} // namespace itk::Statistics
66
67#ifndef ITK_MANUAL_INSTANTIATION
68# include "itkEuclideanSquareDistanceMetric.hxx"
69#endif
70
71#endif
Implements transparent reference counting.
double Evaluate(const MeasurementVectorType &x) const override
double Evaluate(const MeasurementVectorType &x1, const MeasurementVectorType &x2) const override