23 #ifndef otbEuclideanDistanceMetricWithMissingValuePow2_h
24 #define otbEuclideanDistanceMetricWithMissingValuePow2_h
26 #include "itkEuclideanDistanceMetric.h"
52 template <
class TVector>
58 typedef itk::Statistics::EuclideanDistanceMetric<TVector>
Superclass;
73 double Evaluate(
const TVector& x)
const override;
76 double Evaluate(
const TVector& x1,
const TVector& x2)
const override;
86 return Superclass::IsWithinRange(x, radius);
90 static bool IsMissingValue(
const ValueType& v);
93 static void SetToMissingValue(ValueType& v);
108 #ifndef OTB_MANUAL_INSTANTIATION
Euclidean comparison distance function facing missing value. The square root is not performed in this...
itk::SmartPointer< Self > Pointer
EuclideanDistanceMetricWithMissingValuePow2()
bool IsWithinRange(const TVector &x, const double radius) const
EuclideanDistanceMetricWithMissingValuePow2 Self
~EuclideanDistanceMetricWithMissingValuePow2() override
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
itk::Statistics::EuclideanDistanceMetric< TVector > Superclass
itk::SmartPointer< const Self > ConstPointer
TVector::ValueType ValueType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.