#include <vgl_fit_plane_3d.h>
Public Member Functions | |
vgl_fit_plane_3d () | |
vgl_fit_plane_3d (vcl_vector< vgl_homg_point_3d< T > > points) | |
~vgl_fit_plane_3d () | |
void | add_point (vgl_homg_point_3d< T > const &p) |
add a point to point set. | |
void | add_point (const T x, const T y, const T z) |
void | clear () |
clear internal data. | |
bool | fit (const T error_marg, vcl_ostream *outstream=0) |
fits a plane to the stored points. | |
vcl_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. | |
Protected Attributes | |
vcl_vector< vgl_homg_point_3d < T > > | points_ |
vgl_homg_plane_3d< T > | plane_ |
Definition at line 27 of file vgl_fit_plane_3d.h.
vgl_fit_plane_3d< T >::vgl_fit_plane_3d | ( | ) | [inline] |
Definition at line 38 of file vgl_fit_plane_3d.h.
vgl_fit_plane_3d< T >::vgl_fit_plane_3d | ( | vcl_vector< vgl_homg_point_3d< T > > | points | ) |
Definition at line 14 of file vgl_fit_plane_3d.txx.
vgl_fit_plane_3d< T >::~vgl_fit_plane_3d | ( | ) | [inline] |
Definition at line 42 of file vgl_fit_plane_3d.h.
void vgl_fit_plane_3d< T >::add_point | ( | vgl_homg_point_3d< T > const & | p | ) |
add a point to point set.
Definition at line 20 of file vgl_fit_plane_3d.txx.
void vgl_fit_plane_3d< T >::add_point | ( | const T | x, |
const T | y, | ||
const T | z | ||
) |
Definition at line 26 of file vgl_fit_plane_3d.txx.
void vgl_fit_plane_3d< T >::clear | ( | ) |
clear internal data.
Definition at line 32 of file vgl_fit_plane_3d.txx.
bool vgl_fit_plane_3d< T >::fit | ( | const T | error_marg, |
vcl_ostream * | outstream = 0 |
||
) |
fits a plane to the stored points.
report issues over an ostream if declared
Definition at line 38 of file vgl_fit_plane_3d.txx.
vgl_homg_plane_3d<T>& vgl_fit_plane_3d< T >::get_plane | ( | ) | [inline] |
first fit() should be called to get the plane computed.
Definition at line 62 of file vgl_fit_plane_3d.h.
vcl_vector<vgl_homg_point_3d<T> >& vgl_fit_plane_3d< T >::get_points | ( | ) | [inline] |
Definition at line 59 of file vgl_fit_plane_3d.h.
vgl_homg_plane_3d<T> vgl_fit_plane_3d< T >::plane_ [protected] |
Definition at line 32 of file vgl_fit_plane_3d.h.
vcl_vector<vgl_homg_point_3d<T> > vgl_fit_plane_3d< T >::points_ [protected] |
Definition at line 31 of file vgl_fit_plane_3d.h.