Ponca
aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
|
Compute the barycenter of the input points. More...
#include <mean.h>
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. | |
Public Member Functions | |
MeanPosition< DataPoint, _WFunctor, T > & | meanPosition () |
Explicit conversion to MeanPosition , to access methods potentially hidden by heritage. | |
const MeanPosition< DataPoint, _WFunctor, T > & | meanPosition () const |
Explicit conversion to MeanPosition , to access methods potentially hidden by heritage. | |
void | init (const VectorType &_evalPos) |
Set the evaluation position and reset the internal states. | |
bool | addLocalNeighbor (Scalar w, const VectorType &localQ, const DataPoint &attributes) |
Add a neighbor to perform the fit. | |
VectorType | barycenter () const |
Barycenter of the input points expressed in the global frame. | |
Protected Types | |
enum | { PROVIDES_MEAN_POSITION } |
using | Base = T |
Base class of the procedure. | |
Protected Member Functions | |
VectorType | barycenterLocal () const |
Barycenter of the input points expressed in the local frame. | |
Protected Attributes | |
VectorType | m_sumP {VectorType::Zero()} |
Sum of the input points vectors. | |
Compute the barycenter of the input points.
This primitive provides:
PROVIDES_MEAN_POSITION
|
protected |
using Ponca::MeanPosition< DataPoint, _WFunctor, T >::Scalar = typename DataPoint::Scalar |
using Ponca::MeanPosition< DataPoint, _WFunctor, T >::VectorType = typename Base::VectorType |
using Ponca::MeanPosition< DataPoint, _WFunctor, T >::WFunctor = typename Base::WFunctor |
|
protected |
|
inline |
|
inline |
Barycenter of the input points expressed in the global frame.
Defined as \( b(\mathbf{x}) = \frac{\sum_i w_\mathbf{x}(\mathbf{p_i}) \mathbf{p_i}}{\sum_i w_\mathbf{x}(\mathbf{p_i})} \), where \(\left[\mathbf{p_i} \in \text{neighborhood}(\mathbf{x})\right]\) are all the point samples in \(\mathbf{x}\)'s neighborhood
|
inlineprotected |
Barycenter of the input points expressed in the local frame.
Defined as \( b(\mathbf{x}) = \frac{\sum_i w_\mathbf{x}(\mathbf{p_i}) \mathbf{p_i}}{\sum_i w_\mathbf{x}(\mathbf{p_i})} \), where \(\left[\mathbf{p_i} \in \text{neighborhood}(\mathbf{x})\right]\) are all the point samples in \(\mathbf{x}\)'s neighborhood
|
inline |
|
inline |
Explicit conversion to MeanPosition , to access methods potentially hidden by heritage.
|
inline |
Explicit conversion to MeanPosition , to access methods potentially hidden by heritage.
|
protected |