Public Member Functions | Protected Attributes | List of all members
vgl_fit_quadric_3d< T > Class Template Reference

#include <vgl_fit_quadric_3d.h>

Public Member Functions

 vgl_fit_quadric_3d ()=default
 
 vgl_fit_quadric_3d (std::vector< vgl_point_3d< T > > points)
 
 ~vgl_fit_quadric_3d ()=default
 
void add_point (vgl_point_3d< T > const &p)
 add a point to point set. More...
 
void add_point (const T x, const T y, const T z)
 
void clear ()
 clear internal data. More...
 
fit_linear_Taubin (std::ostream *outstream=nullptr)
 fit a general quadric to the stored points using the linear Taubin method. More...
 
fit_ellipsoid_linear_Allaire (std::ostream *outstream=nullptr)
 fit an ellipsoid using the linear Allaire method. More...
 
fit_saddle_shaped_quadric_linear_Allaire (std::ostream *outstream=nullptr)
 fit a quadric class from the set{ hyperboloid_of_one_sheets,. More...
 
std::vector< vgl_point_3d< T > > get_points () const
 
vgl_quadric_3d< T > & quadric_Taubin_fit ()
 The fit computed by the Taubin method. More...
 
vgl_quadric_3d< T > & quadric_Allaire_fit ()
 The fit computed by the Allaire method. More...
 

Protected Attributes

std::vector< vgl_homg_point_3d< T > > points_
 fit an ellipsoid using the linear Allaire method. More...
 
vgl_quadric_3d< T > quadric_Taubin_
 
vgl_quadric_3d< T > quadric_Allaire_
 

Detailed Description

template<class T>
class vgl_fit_quadric_3d< T >

Definition at line 39 of file vgl_fit_quadric_3d.h.

Constructor & Destructor Documentation

◆ vgl_fit_quadric_3d() [1/2]

template<class T >
vgl_fit_quadric_3d< T >::vgl_fit_quadric_3d ( )
default

◆ vgl_fit_quadric_3d() [2/2]

template<class T >
vgl_fit_quadric_3d< T >::vgl_fit_quadric_3d ( std::vector< vgl_point_3d< T > >  points)

Definition at line 26 of file vgl_fit_quadric_3d.hxx.

◆ ~vgl_fit_quadric_3d()

template<class T >
vgl_fit_quadric_3d< T >::~vgl_fit_quadric_3d ( )
default

Member Function Documentation

◆ add_point() [1/2]

template<class T >
void vgl_fit_quadric_3d< T >::add_point ( vgl_point_3d< T > const &  p)

add a point to point set.

Definition at line 35 of file vgl_fit_quadric_3d.hxx.

◆ add_point() [2/2]

template<class T >
void vgl_fit_quadric_3d< T >::add_point ( const T  x,
const T  y,
const T  z 
)

Definition at line 41 of file vgl_fit_quadric_3d.hxx.

◆ clear()

template<class T >
void vgl_fit_quadric_3d< T >::clear ( )

clear internal data.

Definition at line 47 of file vgl_fit_quadric_3d.hxx.

◆ fit_ellipsoid_linear_Allaire()

template<class T >
T vgl_fit_quadric_3d< T >::fit_ellipsoid_linear_Allaire ( std::ostream *  outstream = nullptr)

fit an ellipsoid using the linear Allaire method.

returns the average distance from the points to the ellipsoid error conditions are reported on outstream, if defined.

Definition at line 144 of file vgl_fit_quadric_3d.hxx.

◆ fit_linear_Taubin()

template<class T >
T vgl_fit_quadric_3d< T >::fit_linear_Taubin ( std::ostream *  outstream = nullptr)

fit a general quadric to the stored points using the linear Taubin method.

No restriction on type. returns the average distance from the points to the quadric. error conditions are reported on outstream, if defined.

Definition at line 64 of file vgl_fit_quadric_3d.hxx.

◆ fit_saddle_shaped_quadric_linear_Allaire()

template<class T >
T vgl_fit_quadric_3d< T >::fit_saddle_shaped_quadric_linear_Allaire ( std::ostream *  outstream = nullptr)

fit a quadric class from the set{ hyperboloid_of_one_sheets,.

hyperboloid_of_two_sheets, real_elliptic_cone, hyperbolic_paraboloid, hyperbolic_cylinder} returns the average distance from the points to the ellipsoid error conditions are reported on outstream, if defined.

Definition at line 277 of file vgl_fit_quadric_3d.hxx.

◆ get_points()

template<class T >
std::vector< vgl_point_3d< T > > vgl_fit_quadric_3d< T >::get_points ( ) const

Definition at line 53 of file vgl_fit_quadric_3d.hxx.

◆ quadric_Allaire_fit()

template<class T >
vgl_quadric_3d<T>& vgl_fit_quadric_3d< T >::quadric_Allaire_fit ( )
inline

The fit computed by the Allaire method.

Definition at line 93 of file vgl_fit_quadric_3d.h.

◆ quadric_Taubin_fit()

template<class T >
vgl_quadric_3d<T>& vgl_fit_quadric_3d< T >::quadric_Taubin_fit ( )
inline

The fit computed by the Taubin method.

Definition at line 91 of file vgl_fit_quadric_3d.h.

Member Data Documentation

◆ points_

template<class T >
std::vector<vgl_homg_point_3d<T> > vgl_fit_quadric_3d< T >::points_
protected

fit an ellipsoid using the linear Allaire method.

returns the average distance from the points to the quadric

Definition at line 45 of file vgl_fit_quadric_3d.h.

◆ quadric_Allaire_

template<class T >
vgl_quadric_3d<T> vgl_fit_quadric_3d< T >::quadric_Allaire_
protected

Definition at line 47 of file vgl_fit_quadric_3d.h.

◆ quadric_Taubin_

template<class T >
vgl_quadric_3d<T> vgl_fit_quadric_3d< T >::quadric_Taubin_
protected

Definition at line 46 of file vgl_fit_quadric_3d.h.


The documentation for this class was generated from the following files: