|
Ponca
6f9f1b59d7c8c4654a710cfcef7342f4f5c79ba1
Point Cloud Analysis library
|
NeighborhoodFrame that express 3d points relatively to a prescribed center. More...
#include <frame.h>
Inheritance diagram for Ponca::CenteredNeighborhoodFrame< DataPoint >:
Collaboration diagram for Ponca::CenteredNeighborhoodFrame< DataPoint >:Public Types | |
| using | Scalar = typename DataPoint::Scalar |
| Scalar type from DataPoint. | |
| using | VectorType = typename DataPoint::VectorType |
| Vector type from DataPoint. | |
Public Member Functions | |
| CenteredNeighborhoodFrame (const VectorType &_evalPos=VectorType::Zero()) | |
| CenteredNeighborhoodFrame (const DataPoint &_evalPoint) | |
| VectorType | center () |
| VectorType | center () const |
| void | changeNeighborhoodFrame (const VectorType &_newEvalPos) |
| Change neighborhood frame (move basis center) | |
| VectorType | convertToGlobalBasis (const VectorType &_q, bool _isPositionVector=true) const |
| Convert query from local to global coordinate system, such as \(\mathbf{x}=\mathbf{x}'+\mathbf{p}\). | |
| VectorType | convertToLocalBasis (const VectorType &_q, bool _isPositionVector=true) const |
| Convert query from global to local coordinate system, such as \(\mathbf{x}'=\mathbf{x}-\mathbf{p}\). | |
Static Public Attributes | |
| static constexpr bool | hasLocalFrame = true |
| Flag indicating that this class modifies the coordinates when passing from global to local. | |
NeighborhoodFrame that express 3d points relatively to a prescribed center.
This class is useful to get all coordinates centered around a point, which ease weights computation, and limits issues with big numbers and rounding errors.
Express points \(\mathbf{x}\) relatively to a center \(\mathbf{p}\), ie. \(\mathbf{x}'=\mathbf{x}-\mathbf{p}\). This frame does not apply rotation.
| DataPoint | Point type used for computation |
| using Ponca::CenteredNeighborhoodFrame< DataPoint >::Scalar = typename DataPoint::Scalar |
| using Ponca::CenteredNeighborhoodFrame< DataPoint >::VectorType = typename DataPoint::VectorType |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
Convert query from local to global coordinate system, such as \(\mathbf{x}=\mathbf{x}'+\mathbf{p}\).
| _q | Vector expressed relatively to the basis center |
| _isPositionVector | Indicate if the input vector _q is a position that is influenced by translations (e.g., in contrast to displacement or normal vectors) |
|
inline |
Convert query from global to local coordinate system, such as \(\mathbf{x}'=\mathbf{x}-\mathbf{p}\).
| _q | Input Vector in global coordinate system |
| _isPositionVector | Indicate if the input vector _q is a position that is influenced by translations (e.g., in contrast to displacement or normal vectors) |