Ponca  292d8d7132745e0d4242ff9a01e93697fc96b204
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::GLSParam< DataPoint, _NFilter, T > Class Template Reference

Growing Least Squares reparametrization of the OrientedSphereFit. More...

#include <gls.h>

Inheritance diagram for Ponca::GLSParam< DataPoint, _NFilter, T >:
Collaboration diagram for Ponca::GLSParam< 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.

Public Member Functions

GLSParam< DataPoint, _NFilter, T > & glsParam ()
 Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.
const GLSParam< DataPoint, _NFilter, T > & glsParam () const
 Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.
FIT_RESULT finalize ()
void init ()
Scalar tau () const
 Compute and return \( \tau \).
VectorType eta () const
 Compute and return \( \eta \).
Scalar kappa () const
 Compute and return \( \kappa \).
Scalar tau_normalized () const
 Compute and return \( \frac{\tau}{t} \).
VectorType eta_normalized () const
 Compute and return \( \eta \).
Scalar kappa_normalized () const
 Compute and return \( t \kappa \).
Scalar fitness () const
 Return the fitness, e.g.
Scalar compareTo (const GLSParam< DataPoint, _NFilter, T > &_other, bool _useFitness=true) const
 Compare current instance with other.
bool operator== (const GLSParam< DataPoint, _NFilter, T > &_other) const

Protected Types

using Base = T
 Base class of the procedure.

Protected Attributes

Scalar m_fitness {0}
 Save the fitness value to avoid side effect with Pratt normalization.

Detailed Description

template<class DataPoint, class _NFilter, typename T>
requires ProvidesAlgebraicSphere<T>
class Ponca::GLSParam< DataPoint, _NFilter, T >

Growing Least Squares reparametrization of the OrientedSphereFit.

Method published in [14]

This class assumes that the WeightFunc defines the accessor

w.evalScale();

in order to access to the evaluation scale, needed to compute the scale invariant GLS reparametrization (all *_normalized methods).

Computed values:

Requirements:

ProvidesAlgebraicSphere 

Respects:

ProvidesGLSParam 

[example_requirements_usage] [example_requirements_usage]

Definition at line 49 of file gls.h.

Member Typedef Documentation

◆ Base

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

Base class of the procedure.

Definition at line 52 of file gls.h.

◆ NeighborFilter

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

Alias to the filter applied on the neighbors.

Definition at line 52 of file gls.h.

◆ Scalar

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

Alias to scalar type.

Definition at line 52 of file gls.h.

◆ VectorType

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

Alias to vector type.

Definition at line 52 of file gls.h.

Member Function Documentation

◆ compareTo()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::compareTo ( const GLSParam< DataPoint, _NFilter, T > & _other,
bool _useFitness = true ) const
inlinenodiscard

Compare current instance with other.

Returns
a distance between two fits (0 correspond to two similar fits)
Warning
Use the same scale to have a useful comparison (normalized value are used)

Definition at line 110 of file gls.h.

◆ eta()

template<class DataPoint, class _NFilter, typename T>
VectorType Ponca::GLSParam< DataPoint, _NFilter, T >::eta ( ) const
inlinenodiscard

Compute and return \( \eta \).

Definition at line 76 of file gls.h.

◆ eta_normalized()

template<class DataPoint, class _NFilter, typename T>
VectorType Ponca::GLSParam< DataPoint, _NFilter, T >::eta_normalized ( ) const
inlinenodiscard

Compute and return \( \eta \).

Definition at line 94 of file gls.h.

◆ finalize()

template<class DataPoint, class _NFilter, typename T>
requires ProvidesAlgebraicSphere<T>
FIT_RESULT GLSParam::finalize ( )
inlinenodiscard

Definition at line 10 of file gls.h.

◆ fitness()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::fitness ( ) const
inlinenodiscard

Return the fitness, e.g.

the pratt norm of the initial scalar field

Definition at line 103 of file gls.h.

◆ glsParam() [1/2]

template<class DataPoint, class _NFilter, typename T>
GLSParam< DataPoint, _NFilter, T > & Ponca::GLSParam< DataPoint, _NFilter, T >::glsParam ( )
inline

Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.

Definition at line 57 of file gls.h.

◆ glsParam() [2/2]

template<class DataPoint, class _NFilter, typename T>
const GLSParam< DataPoint, _NFilter, T > & Ponca::GLSParam< DataPoint, _NFilter, T >::glsParam ( ) const
inline

Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.

Definition at line 57 of file gls.h.

◆ init()

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

Definition at line 60 of file gls.h.

◆ kappa()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::kappa ( ) const
inlinenodiscard

Compute and return \( \kappa \).

Definition at line 82 of file gls.h.

◆ kappa_normalized()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::kappa_normalized ( ) const
inlinenodiscard

Compute and return \( t \kappa \).

Definition at line 97 of file gls.h.

◆ operator==()

template<class DataPoint, class _NFilter, typename T>
bool Ponca::GLSParam< DataPoint, _NFilter, T >::operator== ( const GLSParam< DataPoint, _NFilter, T > & _other) const
inlinenodiscard

Definition at line 120 of file gls.h.

◆ tau()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::tau ( ) const
inlinenodiscard

Compute and return \( \tau \).

Definition at line 70 of file gls.h.

◆ tau_normalized()

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::tau_normalized ( ) const
inlinenodiscard

Compute and return \( \frac{\tau}{t} \).

Definition at line 88 of file gls.h.

Member Data Documentation

◆ m_fitness

template<class DataPoint, class _NFilter, typename T>
Scalar Ponca::GLSParam< DataPoint, _NFilter, T >::m_fitness {0}
protected

Save the fitness value to avoid side effect with Pratt normalization.

Definition at line 54 of file gls.h.