|
Ponca
8e4373a7fc557bbfb1afb9210d70f03872388d04
Point Cloud Analysis library
|
Compute the mean normal of the input points. More...
#include <mean.h>
Inheritance diagram for Ponca::MeanNormal< DataPoint, _NFilter, T >:
Collaboration diagram for Ponca::MeanNormal< DataPoint, _NFilter, T >:Public Types | |
| using | Scalar = typename DataPoint::Scalar |
| Alias to scalar type. | |
| using | VectorType = typename Base::VectorType |
| Alias to vector type. | |
| using | NeighborFilter = typename Base::NeighborFilter |
| Alias to the filter applied on the neighbors. | |
Public Member Functions | |
| MeanNormal< DataPoint, _NFilter, T > & | meanNormal () |
| Explicit conversion to MeanNormal , to access methods potentially hidden by heritage. | |
| const MeanNormal< DataPoint, _NFilter, T > & | meanNormal () const |
| Explicit conversion to MeanNormal , to access methods potentially hidden by heritage. | |
| void | init () |
| 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 | meanNormalVector () const |
| Mean of the normals of the input points. | |
Protected Types | |
| enum | { PROVIDES_MEAN_NORMAL } |
| using | Base = T |
| Base class of the procedure. | |
Protected Attributes | |
| VectorType | m_sumN {VectorType::Zero()} |
| Sum of the normal vectors. | |
Compute the mean normal of the input points.
This primitive provides:
PROVIDES_MEAN_NORMAL
|
protected |
| using Ponca::MeanNormal< DataPoint, _NFilter, T >::NeighborFilter = typename Base::NeighborFilter |
| using Ponca::MeanNormal< DataPoint, _NFilter, T >::Scalar = typename DataPoint::Scalar |
| using Ponca::MeanNormal< DataPoint, _NFilter, T >::VectorType = typename Base::VectorType |
|
protected |
|
inline |
|
inline |
|
inline |
Explicit conversion to MeanNormal , to access methods potentially hidden by heritage.
|
inline |
Explicit conversion to MeanNormal , to access methods potentially hidden by heritage.
|
inline |
Mean of the normals of the input points.
Defined as \( n(\mathbf{x}) = \frac{\sum_i w_\mathbf{x}(\mathbf{p_i}) \mathbf{n_i}}{\sum_i w_\mathbf{x}(\mathbf{p_i})} \), where \(\left[\mathbf{p_i}, \mathbf{n_i} \in \text{neighborhood}(\mathbf{x})\right]\) are all the point and normal samples in \(\mathbf{x}\)'s neighborhood
|
protected |