2 #ifndef vgl_fit_plane_3d_h_ 3 #define vgl_fit_plane_3d_h_ 23 # include <vcl_msvc_warnings.h> 31 std::vector<vgl_homg_point_3d<T> >
points_;
48 void add_point(
const T x,
const T y,
const T z);
55 bool fit(
const T error_marg, std::ostream* outstream=
nullptr);
60 T
fit(std::ostream* outstream=
nullptr);
70 #define VGL_FIT_PLANE_3D_INSTANTIATE(T) extern "please include vgl/algo/vgl_fit_plane_3d.hxx first" 72 #endif // vgl_fit_plane_3d_h_ homogeneous plane in 3D projective space
point in projective 3D space
vgl_homg_plane_3d< T > plane_
void clear()
clear internal data.
Represents a homogeneous 3D point.
~vgl_fit_plane_3d()=default
bool fit(const T error_marg, std::ostream *outstream=nullptr)
fits a plane to the stored points.
void add_point(vgl_homg_point_3d< T > const &p)
add a point to point set.
std::vector< vgl_homg_point_3d< T > > & get_points()
vgl_homg_plane_3d< T > & get_plane()
first fit() should be called to get the plane computed.
std::vector< vgl_homg_point_3d< T > > points_
vgl_fit_plane_3d()=default