2 #ifndef vgl_fit_quadric_3d_h_ 3 #define vgl_fit_quadric_3d_h_ 35 # include <vcl_msvc_warnings.h> 45 std::vector<vgl_homg_point_3d<T> >
points_;
63 void add_point(
const T x,
const T y,
const T z);
88 std::vector<vgl_point_3d<T> >
get_points()
const;
96 #define VGL_FIT_QUADRIC_3D_INSTANTIATE(T) extern "please include vgl/algo/vgl_fit_quadric_3d.hxx first" 98 #endif // vgl_fit_quadric_3d_h_ point in projective 3D space
void clear()
clear internal data.
std::vector< vgl_point_3d< T > > get_points() const
vgl_quadric_3d< T > & quadric_Allaire_fit()
The fit computed by the Allaire method.
vgl_fit_quadric_3d()=default
A 2nd order algebraic surface in 3-d.
vgl_quadric_3d< T > quadric_Taubin_
a point in 3D nonhomogeneous space
T fit_ellipsoid_linear_Allaire(std::ostream *outstream=nullptr)
fit an ellipsoid using the linear Allaire method.
T fit_saddle_shaped_quadric_linear_Allaire(std::ostream *outstream=nullptr)
fit a quadric class from the set{ hyperboloid_of_one_sheets,.
void add_point(vgl_point_3d< T > const &p)
add a point to point set.
vgl_quadric_3d< T > & quadric_Taubin_fit()
The fit computed by the Taubin method.
std::vector< vgl_homg_point_3d< T > > points_
fit an ellipsoid using the linear Allaire method.
~vgl_fit_quadric_3d()=default
T fit_linear_Taubin(std::ostream *outstream=nullptr)
fit a general quadric to the stored points using the linear Taubin method.
vgl_quadric_3d< T > quadric_Allaire_