Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T > Class Template Reference

Line fitting procedure that minimize the orthogonal distance between the samples and the fitted primitive. More...

#include <covarianceLineFit.h>

+ Inheritance diagram for Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >:
+ Collaboration diagram for Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >:

Public Types

using Scalar = typename DataPoint::Scalar
 Alias to scalar type.
 
using VectorType = typename Base::VectorType
 Alias to vector type.
 
using WFunctor = typename Base::WFunctor
 Alias to weight function.
 
using MatrixType = typename DataPoint::MatrixType
 Alias to matrix type.
 

Public Member Functions

CovarianceLineFitImpl< DataPoint, _WFunctor, T > & covarianceLineFit ()
 Explicit conversion to CovarianceLineFitImpl , to access methods potentially hidden by heritage.
 
const CovarianceLineFitImpl< DataPoint, _WFunctor, T > & covarianceLineFit () const
 Explicit conversion to CovarianceLineFitImpl , to access methods potentially hidden by heritage.
 
FIT_RESULT finalize ()
 Finalize the procedure.
 
constexpr bool isSigned ()
 Is scalar field signed.
 

Protected Types

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

Detailed Description

template<class DataPoint, class _WFunctor, typename T>
class Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >

Line fitting procedure that minimize the orthogonal distance between the samples and the fitted primitive.

See also
Line
CovariancePlaneFit which use a similar approach for Plane estimation
Warning
This class is valid only in 3D.

Definition at line 34 of file covarianceLineFit.h.

Member Typedef Documentation

◆ Base

template<class DataPoint , class _WFunctor , typename T >
using Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::Base = T
protected

Base class of the procedure.

Definition at line 36 of file covarianceLineFit.h.

◆ MatrixType

template<class DataPoint , class _WFunctor , typename T >
using Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::MatrixType = typename DataPoint::MatrixType

Alias to matrix type.

Definition at line 37 of file covarianceLineFit.h.

◆ Scalar

template<class DataPoint , class _WFunctor , typename T >
using Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::Scalar = typename DataPoint::Scalar

Alias to scalar type.

Definition at line 36 of file covarianceLineFit.h.

◆ VectorType

template<class DataPoint , class _WFunctor , typename T >
using Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::VectorType = typename Base::VectorType

Alias to vector type.

Definition at line 36 of file covarianceLineFit.h.

◆ WFunctor

template<class DataPoint , class _WFunctor , typename T >
using Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::WFunctor = typename Base::WFunctor

Alias to weight function.

Definition at line 36 of file covarianceLineFit.h.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 40 of file covarianceLineFit.h.

Member Function Documentation

◆ covarianceLineFit() [1/2]

template<class DataPoint , class _WFunctor , typename T >
CovarianceLineFitImpl< DataPoint, _WFunctor, T > & Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::covarianceLineFit ( )
inline

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

Definition at line 47 of file covarianceLineFit.h.

◆ covarianceLineFit() [2/2]

template<class DataPoint , class _WFunctor , typename T >
const CovarianceLineFitImpl< DataPoint, _WFunctor, T > & Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::covarianceLineFit ( ) const
inline

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

Definition at line 47 of file covarianceLineFit.h.

◆ finalize()

template<class DataPoint , class _WFunctor , typename T >
FIT_RESULT Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::finalize ( )
inline

Finalize the procedure.

Returns
Fitting Status
Warning
Must be called be for any use of the fitting output

Definition at line 50 of file covarianceLineFit.h.

◆ isSigned()

template<class DataPoint , class _WFunctor , typename T >
constexpr bool Ponca::CovarianceLineFitImpl< DataPoint, _WFunctor, T >::isSigned ( )
inlineconstexpr

Is scalar field signed.

If not, the method the sign of potential() must be ignored

Definition at line 59 of file covarianceLineFit.h.