Ponca  8e4373a7fc557bbfb1afb9210d70f03872388d04
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::GlobalNeighborhoodFrame< DataPoint > Class Template Reference

NeighborhoodFrame that keep points in the global frame without applying any transformation. More...

#include <weightFunc.h>

+ Collaboration diagram for Ponca::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) const
 Convert position from local to global coordinate system : does nothing as this is global frame.
 
const VectorTypeconvertToLocalBasis (const VectorType &_q) 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::GlobalNeighborhoodFrame< DataPoint >

NeighborhoodFrame that keep points in the global frame without applying any transformation.

This class is useful to compute Express points \(\mathbf{x}\) relatively to a center \(\mathbf{p}\), ie. \(\mathbf{x}'=\mathbf{x}-\mathbf{p}\). This frame does not apply rotation.

Template Parameters
DataPointPoint type used for computation

Definition at line 78 of file weightFunc.h.

Member Typedef Documentation

◆ Scalar

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

Scalar type from DataPoint.

Definition at line 81 of file weightFunc.h.

◆ VectorType

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

Vector type from DataPoint.

Definition at line 83 of file weightFunc.h.

Constructor & Destructor Documentation

◆ GlobalNeighborhoodFrame()

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

Definition at line 88 of file weightFunc.h.

Member Function Documentation

◆ changeNeighborhoodFrame()

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

Change neighborhood frame (has no effect for global basis)

Definition at line 91 of file weightFunc.h.

◆ convertToGlobalBasis()

template<class DataPoint >
const VectorType & Ponca::GlobalNeighborhoodFrame< DataPoint >::convertToGlobalBasis ( const VectorType _q) const
inline

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

Parameters
_qPosition in local coordinate
Returns
_q

Definition at line 98 of file weightFunc.h.

◆ convertToLocalBasis()

template<class DataPoint >
const VectorType & Ponca::GlobalNeighborhoodFrame< DataPoint >::convertToLocalBasis ( const VectorType _q) const
inline

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

Parameters
_qQuery in global coordinate
Returns
_q

Definition at line 105 of file weightFunc.h.

Member Data Documentation

◆ hasLocalFrame

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

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

Definition at line 86 of file weightFunc.h.