20 #ifndef MIRTK_DistanceErrorFunction_H 21 #define MIRTK_DistanceErrorFunction_H 23 #include "mirtk/RadialErrorFunction.h" 24 #include "mirtk/Math.h" 61 virtual double Value(
double d)
const 69 return (d == .0 ? .0 : 0.5 / sqrt(d));
77 #endif // MIRTK_DistanceErrorFunction_H virtual RadialErrorFunction * NewInstance() const
Copy construct a new instance.
DistanceErrorFunction()
Constructor.
TypeId
Enumeration of available error functions.
~DistanceErrorFunction()
Destructor.
DistanceErrorFunction(const DistanceErrorFunction &)
Copy constructor.
virtual double Value(double d) const
Evaluate radial registration error.
virtual TypeId Type() const
Type enumeration value.
virtual double Derivative(double d) const
Evaluate derivative of radial registration error.