2 #ifndef vgl_fit_conics_2d_h_ 3 #define vgl_fit_conics_2d_h_ 25 # include <vcl_msvc_warnings.h> 35 std::vector<vgl_point_2d<T> >
curve_;
36 std::vector<vgl_conic_segment_2d<T> >
segs_;
73 void output(
const unsigned start_index,
const unsigned end_index,
77 #define VGL_FIT_CONICS_2D_INSTANTIATE(T) extern "please include vgl/algo/vgl_fit_conics_2d.hxx first" 79 #endif // vgl_fit_conics_2d_h_
void output(const unsigned start_index, const unsigned end_index, vgl_conic< T > const &conic)
output a conic that fits from start to end.
a point in 2D nonhomogeneous space
vgl_fit_conics_2d(const unsigned min_length=10, const T tol=0.01)
Constructor.
std::vector< vgl_point_2d< T > > curve_
std::vector< vgl_conic_segment_2d< T > > & get_conic_segs()
std::vector< vgl_point_2d< T > > & get_points()
~vgl_fit_conics_2d()=default
void add_point(vgl_point_2d< T > const &p)
add a point to the curve.
bool fit()
the fitting method.
std::vector< vgl_conic_segment_2d< T > > segs_
void set_min_fit_length(const unsigned min_fit_length)
set parameters.
void clear()
clear internal data.
void add_curve(std::vector< vgl_point_2d< T > > const &curve)
add an entire curve.
A curve segment with the geometry of a conic.
void set_rms_error_tol(const T rms_error_tol)