Ponca  94e4a36411c3364f6192f97adfa8ceee67834d6e
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T > Class Template Reference

Base class for any 3d curvature estimator: holds \(k_{\min}\), \(k_{\max}\) and associated vectors, such that \( k_{\min} <= k_{\max} \). More...

#include <curvature.h>

+ Inheritance diagram for Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >:
+ Collaboration diagram for Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >:

Public Types

using Scalar = typename DataPoint::Scalar
 Alias to scalar type.
 
using VectorType = typename Base::VectorType
 Alias to vector type.
 
using NeighborFilter = typename Base::NeighborFilter
 Alias to the filter applied on the neighbors.
 
using MatrixType = typename DataPoint::MatrixType
 Alias to matrix type.
 

Public Member Functions

void init ()
 Set the evaluation position and reset the internal states.
 
bool isValid () const
 Returns true if contains valid curvature values (and not default ones)
 
Scalar kmin () const
 Returns an estimate of the minimal principal curvature value.
 
Scalar kmax () const
 Returns an estimate of the maximal principal curvature value.
 
VectorType kminDirection () const
 Returns an estimate of the minimal principal curvature direction.
 
VectorType kmaxDirection () const
 Returns an estimate of the maximal principal curvature direction.
 
Scalar kMean () const
 Returns an estimate of the mean curvature.
 
Scalar GaussianCurvature () const
 Returns an estimate of the Gaussian curvature.
 

Protected Types

enum  { PROVIDES_PRINCIPAL_CURVATURES }
 
using Base = T
 Base class of the procedure.
 

Protected Member Functions

void setCurvatureValues (Scalar kmin, Scalar kmax, const VectorType &vmin, const VectorType &vmax)
 Set curvature values. To be called in finalize() by child classes.
 

Detailed Description

template<class DataPoint, class _NFilter, typename T>
class Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >

Base class for any 3d curvature estimator: holds \(k_{\min}\), \(k_{\max}\) and associated vectors, such that \( k_{\min} <= k_{\max} \).

Definition at line 21 of file curvature.h.

Member Typedef Documentation

◆ Base

template<class DataPoint , class _NFilter , typename T >
using Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::Base = T
protected

Base class of the procedure.

Definition at line 23 of file curvature.h.

◆ MatrixType

template<class DataPoint , class _NFilter , typename T >
using Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::MatrixType = typename DataPoint::MatrixType

Alias to matrix type.

Definition at line 24 of file curvature.h.

◆ NeighborFilter

template<class DataPoint , class _NFilter , typename T >
using Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::NeighborFilter = typename Base::NeighborFilter

Alias to the filter applied on the neighbors.

Definition at line 23 of file curvature.h.

◆ Scalar

template<class DataPoint , class _NFilter , typename T >
using Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::Scalar = typename DataPoint::Scalar

Alias to scalar type.

Definition at line 23 of file curvature.h.

◆ VectorType

template<class DataPoint , class _NFilter , typename T >
using Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::VectorType = typename Base::VectorType

Alias to vector type.

Definition at line 23 of file curvature.h.

Member Enumeration Documentation

◆ anonymous enum

template<class DataPoint , class _NFilter , typename T >
anonymous enum
protected

Definition at line 27 of file curvature.h.

Member Function Documentation

◆ GaussianCurvature()

template<class DataPoint , class _NFilter , typename T >
Scalar Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::GaussianCurvature ( ) const
inline

Returns an estimate of the Gaussian curvature.

Definition at line 72 of file curvature.h.

◆ init()

template<class DataPoint , class _NFilter , typename T >
void Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::init ( )
inline

Set the evaluation position and reset the internal states.

Warning
Must be called be for any computation (but after #setNeighborFilter)

Definition at line 14 of file curvature.hpp.

◆ isValid()

template<class DataPoint , class _NFilter , typename T >
bool Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::isValid ( ) const
inline

Returns true if contains valid curvature values (and not default ones)

Definition at line 51 of file curvature.h.

◆ kmax()

template<class DataPoint , class _NFilter , typename T >
Scalar Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::kmax ( ) const
inline

Returns an estimate of the maximal principal curvature value.

Definition at line 60 of file curvature.h.

◆ kmaxDirection()

template<class DataPoint , class _NFilter , typename T >
VectorType Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::kmaxDirection ( ) const
inline

Returns an estimate of the maximal principal curvature direction.

Definition at line 66 of file curvature.h.

◆ kMean()

template<class DataPoint , class _NFilter , typename T >
Scalar Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::kMean ( ) const
inline

Returns an estimate of the mean curvature.

Definition at line 69 of file curvature.h.

◆ kmin()

template<class DataPoint , class _NFilter , typename T >
Scalar Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::kmin ( ) const
inline

Returns an estimate of the minimal principal curvature value.

Definition at line 57 of file curvature.h.

◆ kminDirection()

template<class DataPoint , class _NFilter , typename T >
VectorType Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::kminDirection ( ) const
inline

Returns an estimate of the minimal principal curvature direction.

Definition at line 63 of file curvature.h.

◆ setCurvatureValues()

template<class DataPoint , class _NFilter , typename T >
void Ponca::internal::CurvatureEstimatorBase< DataPoint, _NFilter, T >::setCurvatureValues ( Scalar  kmin,
Scalar  kmax,
const VectorType vmin,
const VectorType vmax 
)
inlineprotected

Set curvature values. To be called in finalize() by child classes.

If the given parameters are such that \( k_{\min} > k_{\max} \), then this method swap the two curvature values and directions and store them such that \( k_{\min} <= k_{\max} \).

Definition at line 26 of file curvature.hpp.