Ponca  7d8ac87a7de01d881c9fde3c42e397b44bffb901
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::internal::GlobalNeighborhoodFrame< DataPoint > Class Template Reference

NeighborhoodFrame that keep points in the global frame without applying any transformation This class is useful to compute direct fits in the embedding space, without paying the cost to express neighbors relatively to an evaluation point. More...

#include <weightFunc.h>

+ Collaboration diagram for Ponca::internal::GlobalNeighborhoodFrame< DataPoint >:

Public Types

using Scalar = typename DataPoint::Scalar
 Scalar type from DataPoint.
 
using VectorType = typename DataPoint::VectorType
 Vector type from DataPoint.
 

Public Member Functions

 GlobalNeighborhoodFrame (const VectorType &=VectorType::Zero())
 
void changeNeighborhoodFrame (const VectorType &)
 Change neighborhood frame (has no effect for global basis)
 
const VectorTypeconvertToGlobalBasis (const VectorType &_q, bool=true) const
 Convert position from local to global coordinate system : does nothing as this is global frame.
 
const VectorTypeconvertToLocalBasis (const VectorType &_q, bool=true) const
 Convert query from global to local coordinate system : does nothing as this is global frame.
 

Static Public Attributes

static constexpr bool hasLocalFrame = false
 Flag indicating that this class does not modify the coordinates when passing from global to local.
 

Detailed Description

template<class DataPoint>
class Ponca::internal::GlobalNeighborhoodFrame< DataPoint >

NeighborhoodFrame that keep points in the global frame without applying any transformation This class is useful to compute direct fits in the embedding space, without paying the cost to express neighbors relatively to an evaluation point.

Warning
In case the data have strong magnitude (e.g., georeferenced point clouds), it is recommended to use CenteredNeighborhoodFrame instead.
Note
This class is designed to serve as a Base class for the definition of NeighborFilters, and cannot be used directly
Template Parameters
DataPointPoint type used for computation

Definition at line 112 of file weightFunc.h.

Member Typedef Documentation

◆ Scalar

template<class DataPoint >
using Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::Scalar = typename DataPoint::Scalar

Scalar type from DataPoint.

Definition at line 116 of file weightFunc.h.

◆ VectorType

template<class DataPoint >
using Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::VectorType = typename DataPoint::VectorType

Vector type from DataPoint.

Definition at line 118 of file weightFunc.h.

Constructor & Destructor Documentation

◆ GlobalNeighborhoodFrame()

template<class DataPoint >
Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::GlobalNeighborhoodFrame ( const VectorType = VectorType::Zero())
inlineexplicit

Definition at line 123 of file weightFunc.h.

Member Function Documentation

◆ changeNeighborhoodFrame()

template<class DataPoint >
void Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::changeNeighborhoodFrame ( const VectorType )
inline

Change neighborhood frame (has no effect for global basis)

Definition at line 128 of file weightFunc.h.

◆ convertToGlobalBasis()

template<class DataPoint >
const VectorType & Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::convertToGlobalBasis ( const VectorType _q,
bool  = true 
) const
inline

Convert position from local to global coordinate system : does nothing as this is global frame.

Parameters
_qPosition in local coordinate
_isPositionVectorIndicate if the input vector _q is a position that is influenced by translations (e.g., in contrast to displacement or normal vectors)
Returns
_q

Definition at line 137 of file weightFunc.h.

◆ convertToLocalBasis()

template<class DataPoint >
const VectorType & Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::convertToLocalBasis ( const VectorType _q,
bool  = true 
) const
inline

Convert query from global to local coordinate system : does nothing as this is global frame.

Parameters
_qQuery in global coordinate
_isPositionVectorIndicate if the input vector _q is a position that is influenced by translations (e.g., in contrast to displacement or normal vectors)
Returns
_q

Definition at line 150 of file weightFunc.h.

Member Data Documentation

◆ hasLocalFrame

template<class DataPoint >
constexpr bool Ponca::internal::GlobalNeighborhoodFrame< DataPoint >::hasLocalFrame = false
staticconstexpr

Flag indicating that this class does not modify the coordinates when passing from global to local.

Definition at line 121 of file weightFunc.h.