15 template <
class DataPo
int,
class _NFilter,
typename T>
23 PONCA_FITTING_DECLARE_DEFAULT_TYPES
24 PONCA_FITTING_DECLARE_MATRIX_TYPE
29 PROVIDES_PRINCIPAL_CURVATURES
40 m_vmax {VectorType::Zero()};
43 bool m_isValid {
false};
45 static_assert ( DataPoint::Dim == 3,
"CurvatureEstimatorBase is only valid in 3D");
48 PONCA_FITTING_DECLARE_INIT
51 PONCA_MULTIARCH [[nodiscard]]
inline bool isValid()
const {
return m_isValid; }
57 PONCA_MULTIARCH [[nodiscard]]
inline Scalar kmin()
const {
return m_kmin; }
60 PONCA_MULTIARCH [[nodiscard]]
inline Scalar kmax()
const {
return m_kmax; }
69 PONCA_MULTIARCH [[nodiscard]]
inline Scalar kMean()
const {
return (m_kmin + m_kmax)/
Scalar(2);}
86 template <
class DataPo
int,
class _NFilter,
typename T>
94 template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
103#include "curvature.hpp"
Make CurvatureEstimatorBase available to BasketDiff object.
CurvatureEstimatorDer< DataPoint, _NFilter, DiffType, T > & curvatureEstimator()
Explicit conversion to CurvatureEstimatorDer , to access methods potentially hidden by heritage.
Make CurvatureEstimatorBase available to standard Basket object.
CurvatureEstimator< DataPoint, _NFilter, T > & curvatureEstimator()
Explicit conversion to CurvatureEstimator , to access methods potentially hidden by heritage.
Base class for any 3d curvature estimator: holds , and associated vectors, such that .
void setCurvatureValues(Scalar kmin, Scalar kmax, const VectorType &vmin, const VectorType &vmax)
Set curvature values. To be called in finalize() by child classes.
VectorType kminDirection() const
Returns an estimate of the minimal principal curvature direction.
typename Base::VectorType VectorType
Alias to vector type.
bool isValid() const
Returns true if contains valid curvature values (and not default ones)
Scalar kMean() const
Returns an estimate of the mean curvature.
Scalar kmin() const
Returns an estimate of the minimal principal curvature value.
Scalar GaussianCurvature() const
Returns an estimate of the Gaussian curvature.
typename DataPoint::Scalar Scalar
Alias to scalar type.
Scalar kmax() const
Returns an estimate of the maximal principal curvature value.
VectorType kmaxDirection() const
Returns an estimate of the maximal principal curvature direction.
This Source Code Form is subject to the terms of the Mozilla Public License, v.