CGAL 5.4.4 - Scale-Space Surface Reconstruction
|
#include <CGAL/Scale_space_reconstruction_3/Weighted_PCA_smoother.h>
Smoother for scale space reconstruction based on a principal component analysis weighted by the local density of points.
Geom_traits | geometric traits class. It must be a model of DelaunayTriangulationTraits_3 . It must have a RealEmbeddable field number type. Generally, Exact_predicates_inexact_constructions_kernel is preferred. |
DiagonalizeTraits | model of DiagonalizeTraits that determines how to diagonalize a weighted covariance matrix to approximate a weighted point set. It can be omitted if Eigen 3 (or greater) is available and CGAL_EIGEN3_ENABLED is defined: in that case, an overload using Eigen_diagonalize_traits is provided. |
ConcurrencyTag | indicates whether to use concurrent processing. It can be omitted: if Intel TBB is available and CGAL_LINKED_WITH_TBB is defined then Parallel_tag is used. Otherwise, Sequential_tag is used. |
Public Types | |
typedef Geom_traits::FT | FT |
defines the point type. | |
typedef Geom_traits::Point_3 | Point |
defines the point typ.e | |
typedef Geom_traits::Vector_3 | Vector |
defines the vector type. | |
Public Member Functions | |
Weighted_PCA_smoother (unsigned int neighbors=12, unsigned int samples=300) | |
Constructs a weighted PCA smoother that will automatically estimate the neighborhood radius. More... | |
Weighted_PCA_smoother (FT squared_radius) | |
Constructs a weighted PCA smoother. More... | |
FT | squared_radius () |
Returns the computed (or user-specified) squared radius. | |
CGAL::Scale_space_reconstruction_3::Weighted_PCA_smoother< Geom_traits, DiagonalizeTraits, ConcurrencyTag >::Weighted_PCA_smoother | ( | unsigned int | neighbors = 12 , |
unsigned int | samples = 300 |
||
) |
Constructs a weighted PCA smoother that will automatically estimate the neighborhood radius.
neighbors | is the number of neighbors a point's neighborhood should contain on average. |
samples | is the number of points sampled to estimate the neighborhood radius. |
CGAL::Scale_space_reconstruction_3::Weighted_PCA_smoother< Geom_traits, DiagonalizeTraits, ConcurrencyTag >::Weighted_PCA_smoother | ( | FT | squared_radius | ) |
Constructs a weighted PCA smoother.
squared_radius | neighborhood squared radius used for principal component analysis. |