#include <vgl_fit_conics_2d.h>
Public Member Functions | |
vgl_fit_conics_2d (const unsigned min_length=10, const T tol=0.01) | |
Constructor. | |
~vgl_fit_conics_2d () | |
void | set_min_fit_length (const unsigned min_fit_length) |
set parameters. | |
void | set_rms_error_tol (const T rms_error_tol) |
void | add_point (vgl_point_2d< T > const &p) |
add a point to the curve. | |
void | add_point (const T x, const T y) |
add point. | |
void | add_curve (vcl_vector< vgl_point_2d< T > > const &curve) |
add an entire curve. | |
void | clear () |
clear internal data. | |
bool | fit () |
the fitting method. | |
vcl_vector< vgl_point_2d< T > > & | get_points () |
vcl_vector < vgl_conic_segment_2d< T > > & | get_conic_segs () |
Protected Member Functions | |
void | output (const unsigned start_index, const unsigned end_index, vgl_conic< T > const &conic) |
output a conic that fits from start to end. | |
Protected Attributes | |
vcl_vector< vgl_point_2d< T > > | curve_ |
vcl_vector < vgl_conic_segment_2d< T > > | segs_ |
unsigned int | min_length_ |
T | tol_ |
Definition at line 31 of file vgl_fit_conics_2d.h.
vgl_fit_conics_2d< T >::vgl_fit_conics_2d | ( | const unsigned | min_length = 10 , |
const T | tol = 0.01 |
||
) |
Constructor.
Definition at line 16 of file vgl_fit_conics_2d.txx.
vgl_fit_conics_2d< T >::~vgl_fit_conics_2d | ( | ) | [inline] |
Definition at line 46 of file vgl_fit_conics_2d.h.
void vgl_fit_conics_2d< T >::add_curve | ( | vcl_vector< vgl_point_2d< T > > const & | curve | ) | [inline] |
add an entire curve.
Definition at line 59 of file vgl_fit_conics_2d.h.
void vgl_fit_conics_2d< T >::add_point | ( | vgl_point_2d< T > const & | p | ) |
void vgl_fit_conics_2d< T >::add_point | ( | const T | x, |
const T | y | ||
) |
add point.
Definition at line 36 of file vgl_fit_conics_2d.txx.
void vgl_fit_conics_2d< T >::clear | ( | ) |
bool vgl_fit_conics_2d< T >::fit | ( | ) |
the fitting method.
Definition at line 96 of file vgl_fit_conics_2d.txx.
vcl_vector<vgl_conic_segment_2d<T> >& vgl_fit_conics_2d< T >::get_conic_segs | ( | ) | [inline] |
Definition at line 69 of file vgl_fit_conics_2d.h.
vcl_vector<vgl_point_2d<T> >& vgl_fit_conics_2d< T >::get_points | ( | ) | [inline] |
Definition at line 68 of file vgl_fit_conics_2d.h.
void vgl_fit_conics_2d< T >::output | ( | const unsigned | start_index, |
const unsigned | end_index, | ||
vgl_conic< T > const & | conic | ||
) | [protected] |
output a conic that fits from start to end.
Definition at line 50 of file vgl_fit_conics_2d.txx.
void vgl_fit_conics_2d< T >::set_min_fit_length | ( | const unsigned | min_fit_length | ) | [inline] |
set parameters.
Definition at line 51 of file vgl_fit_conics_2d.h.
void vgl_fit_conics_2d< T >::set_rms_error_tol | ( | const T | rms_error_tol | ) | [inline] |
Definition at line 52 of file vgl_fit_conics_2d.h.
vcl_vector<vgl_point_2d<T> > vgl_fit_conics_2d< T >::curve_ [protected] |
Definition at line 35 of file vgl_fit_conics_2d.h.
unsigned int vgl_fit_conics_2d< T >::min_length_ [protected] |
Definition at line 37 of file vgl_fit_conics_2d.h.
vcl_vector<vgl_conic_segment_2d<T> > vgl_fit_conics_2d< T >::segs_ [protected] |
Definition at line 36 of file vgl_fit_conics_2d.h.
T vgl_fit_conics_2d< T >::tol_ [protected] |
Definition at line 38 of file vgl_fit_conics_2d.h.