10#include "./curvature.h"
40template <
class DataPo
int,
class _WFunctor,
typename T>
43 PONCA_FITTING_DECLARE_DEFAULT_TYPES
49 Check = Base::PROVIDES_ALGEBRAIC_SPHERE,
50 PROVIDES_GLS_PARAMETRIZATION
59 PONCA_FITTING_DECLARE_FINALIZE
67 return Base::isNormalized() ? Base::m_uc : Base::m_uc / Base::prattNorm();
71 PONCA_MULTIARCH
inline VectorType eta()
const {
return Base::primitiveGradient(); }
76 return Scalar(2.) * (Base::isNormalized() ? Base::m_uq : Base::m_uq / Base::prattNorm());
97 bool _useFitness =
true)
const
103 return nTau * nTau + nKappa * nKappa + nFitness * nFitness;
115template <
class DataPo
int,
class _WFunctor,
int DiffType,
typename T>
118PONCA_FITTING_DECLARE_DEFAULT_TYPES
119PONCA_FITTING_DECLARE_DEFAULT_DER_TYPES
124 Check = Base::PROVIDES_GLS_PARAMETRIZATION &
125 Base::PROVIDES_PRIMITIVE_DERIVATIVE &
126 Base::PROVIDES_ALGEBRAIC_SPHERE_DERIVATIVE,
127 PROVIDES_GLS_DERIVATIVE,
128 PROVIDES_GLS_GEOM_VAR
Differentiation of GLSParam.
VectorArray deta() const
Compute and return derivatives.
typename Base::ScalarArray ScalarArray
Alias to scalar derivatives array.
Scalar geomVar(Scalar wtau=Scalar(1), Scalar weta=Scalar(1), Scalar wkappa=Scalar(1)) const
The Geometric Variation is computed as the weighted sum of the GLS scale-invariant partial derivative...
typename DataPoint::Scalar Scalar
Alias to scalar type.
typename Base::VectorArray VectorArray
Alias to vector derivatives array.
ScalarArray dtau() const
Compute and return derivatives.
ScalarArray dkappa() const
Compute and return derivatives.
GLSDer< DataPoint, _WFunctor, DiffType, T > & glsDer()
Explicit conversion to GLSDer , to access methods potentially hidden by heritage.
VectorArray deta_normalized() const
Compute and return .
ScalarArray dkappa_normalized() const
Compute and return .
ScalarArray dtau_normalized() const
Compute and return derivatives.
Growing Least Squares reparemetrization of the OrientedSphereFit.
GLSParam< DataPoint, _WFunctor, T > & glsParam()
Explicit conversion to GLSParam , to access methods potentially hidden by heritage.
Scalar compareTo(const GLSParam< DataPoint, _WFunctor, T > &_other, bool _useFitness=true) const
Compare current instance with other.
Scalar tau_normalized() const
Compute and return .
typename DataPoint::Scalar Scalar
Alias to scalar type.
VectorType eta() const
Compute and return .
VectorType eta_normalized() const
Compute and return .
Scalar fitness() const
Return the fitness, e.g.
Scalar tau() const
Compute and return .
Scalar kappa_normalized() const
Compute and return .
Scalar m_fitness
[Requirements]
typename Base::VectorType VectorType
Alias to vector type.
Scalar kappa() const
Compute and return .
This Source Code Form is subject to the terms of the Mozilla Public License, v.