#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... | |
| T | fit_linear_Taubin (std::ostream *outstream=nullptr) |
| fit a general quadric to the stored points using the linear Taubin method. More... | |
| T | fit_ellipsoid_linear_Allaire (std::ostream *outstream=nullptr) |
| fit an ellipsoid using the linear Allaire method. More... | |
| T | 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_ |
Definition at line 39 of file vgl_fit_quadric_3d.h.
|
default |
| 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.
|
default |
| 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.
| 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.
| void vgl_fit_quadric_3d< T >::clear | ( | ) |
clear internal data.
Definition at line 47 of file vgl_fit_quadric_3d.hxx.
| 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.
| 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.
| 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.
| 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.
|
inline |
The fit computed by the Allaire method.
Definition at line 93 of file vgl_fit_quadric_3d.h.
|
inline |
The fit computed by the Taubin method.
Definition at line 91 of file vgl_fit_quadric_3d.h.
|
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.
|
protected |
Definition at line 47 of file vgl_fit_quadric_3d.h.
|
protected |
Definition at line 46 of file vgl_fit_quadric_3d.h.
1.8.15