|
DGtal 1.4.2
|
Aim: Use Patate library to perform a local sphere fitting. More...
#include <DGtal/geometry/surfaces/estimation/estimationFunctors/SphereFittingEstimator.h>
Data Structures | |
| class | PatatePoint |
| struct | Quantity |
| Quantity type: a 3-sphere (model of CQuantity) More... | |
Public Types | |
| typedef TSurfel | Surfel |
| typedef TEmbedder | SCellEmbedder |
| typedef SCellEmbedder::RealPoint | RealPoint |
| typedef TNormalVectorEstimatorCache | NormalVectorEstimatorCache |
| typedef PatatePoint::Scalar | Scalar |
| typedef PatatePoint::VectorType | VectorType |
| typedef Grenaille::DistWeightFunc< PatatePoint, Grenaille::SmoothWeightKernel< Scalar > > | WeightFunc |
| typedef Grenaille::Basket< PatatePoint, WeightFunc, Grenaille::OrientedSphereFit, Grenaille::GLSParam > | Fit |
Public Member Functions | |
| SphereFittingEstimator (ConstAlias< SCellEmbedder > anEmbedder, const double h, const double radius, ConstAlias< NormalVectorEstimatorCache > anEstimator) | |
| ~SphereFittingEstimator () | |
| void | pushSurfel (const Surfel &aSurf, const double aDistance) |
| Quantity | eval () |
| void | reset () |
Private Attributes | |
| const SCellEmbedder * | myEmbedder |
| Alias of the geometrical embedder. | |
| Fit * | myFit |
| Fitting object. | |
| double | myH |
| Grid step. | |
| bool | myFirstPoint |
| Boolean for initial point. | |
| const NormalVectorEstimatorCache * | myNormalEsitmatorCache |
| NormalVectorCache. | |
| const WeightFunc * | myWeightFunction |
| const WeightFunction | |
Aim: Use Patate library to perform a local sphere fitting.
Description of template class 'SphereFittingEstimator'
Given a kernel radius, this functor performs a sphere fitting and outputs the parameters of an AlgebraicSphere (please see Patate documentation for details).
Model of concepts::CLocalEstimatorFromSurfelFunctor.
| TSurfel | type of surfels |
| TEmbedder | type of functors which embed surfel to \( \mathbb{R}^3\). |
| TNormalVectorEstimatorCache | the type of normal vector cache to consider (see EstimatorCache class). |
Definition at line 88 of file SphereFittingEstimator.h.
| Grenaille::Basket<PatatePoint,WeightFunc,Grenaille::OrientedSphereFit, Grenaille::GLSParam> DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::Fit |
Definition at line 126 of file SphereFittingEstimator.h.
| TNormalVectorEstimatorCache DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::NormalVectorEstimatorCache |
Definition at line 120 of file SphereFittingEstimator.h.
| SCellEmbedder::RealPoint DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::RealPoint |
Definition at line 118 of file SphereFittingEstimator.h.
| PatatePoint::Scalar DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::Scalar |
Definition at line 122 of file SphereFittingEstimator.h.
| TEmbedder DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::SCellEmbedder |
Definition at line 117 of file SphereFittingEstimator.h.
| TSurfel DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::Surfel |
Definition at line 116 of file SphereFittingEstimator.h.
| PatatePoint::VectorType DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::VectorType |
Definition at line 123 of file SphereFittingEstimator.h.
| Grenaille::DistWeightFunc<PatatePoint,Grenaille::SmoothWeightKernel<Scalar> > DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::WeightFunc |
Definition at line 125 of file SphereFittingEstimator.h.
|
inline |
Constructor.
| [in] | anEmbedder | embedder to map surfel to R^n. |
| [in] | h | gridstep. |
| [in] | radius | radius of the convolution kernel (in \(\mathbb{Z}^n\) space). |
| [in] | anEstimator | normal vector estimator on the surface. |
Definition at line 158 of file SphereFittingEstimator.h.
References DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFit, and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myWeightFunction.
|
inline |
Destructor.
Definition at line 174 of file SphereFittingEstimator.h.
References DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFit, and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myWeightFunction.
|
inline |
Evaluate the sphere fitting.
Definition at line 221 of file SphereFittingEstimator.h.
References DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::Quantity::center, DGtal::Trace::info(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFit, and DGtal::trace.
|
inline |
Add the geometrical embedding of a surfel to the point list
| [in] | aSurf | a surfel to add |
| [in] | aDistance | of aSurf to the neighborhood boundary |
Definition at line 187 of file SphereFittingEstimator.h.
References DGtal::Trace::info(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myEmbedder, DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFirstPoint, DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFit, DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myH, DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myNormalEsitmatorCache, and DGtal::trace.
|
inline |
Reset the point list.
Definition at line 266 of file SphereFittingEstimator.h.
References DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFirstPoint, DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myFit, and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::myWeightFunction.
|
private |
Alias of the geometrical embedder.
Definition at line 278 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::pushSurfel().
|
private |
Boolean for initial point.
Definition at line 287 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::pushSurfel(), and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::reset().
|
private |
Fitting object.
Definition at line 281 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::eval(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::pushSurfel(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::reset(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::SphereFittingEstimator(), and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::~SphereFittingEstimator().
|
private |
Grid step.
Definition at line 284 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::pushSurfel().
|
private |
NormalVectorCache.
Definition at line 290 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::pushSurfel().
|
private |
const WeightFunction
Definition at line 293 of file SphereFittingEstimator.h.
Referenced by DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::reset(), DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::SphereFittingEstimator(), and DGtal::functors::SphereFittingEstimator< TSurfel, TEmbedder, TNormalVectorEstimatorCache >::~SphereFittingEstimator().