Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vgl_fit_conics_2d< T > Class Template Reference

#include <vgl_fit_conics_2d.h>

List of all members.


Detailed Description

template<class T>
class vgl_fit_conics_2d< T >

Definition at line 31 of file 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 an 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_
tol_


Constructor & Destructor Documentation

template<class T>
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.

template<class T>
vgl_fit_conics_2d< T >::~vgl_fit_conics_2d  )  [inline]
 

Definition at line 46 of file vgl_fit_conics_2d.h.


Member Function Documentation

template<class T>
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.

template<class T>
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.

template<class T>
void vgl_fit_conics_2d< T >::add_point vgl_point_2d< T > const &  p  ) 
 

add a point to the curve.

Definition at line 26 of file vgl_fit_conics_2d.txx.

template<class T>
void vgl_fit_conics_2d< T >::clear  ) 
 

clear internal data.

Definition at line 43 of file vgl_fit_conics_2d.txx.

template<class T>
bool vgl_fit_conics_2d< T >::fit  ) 
 

the fitting method.

Definition at line 96 of file vgl_fit_conics_2d.txx.

template<class T>
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.

template<class T>
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.

template<class T>
void vgl_fit_conics_2d< T >::output const unsigned  start_index,
const unsigned  end_index,
vgl_conic< T > const &  conic
[protected]
 

output an conic that fits from start to end.

Definition at line 50 of file vgl_fit_conics_2d.txx.

template<class T>
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.

template<class T>
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.


Member Data Documentation

template<class T>
vcl_vector<vgl_point_2d<T> > vgl_fit_conics_2d< T >::curve_ [protected]
 

Definition at line 35 of file vgl_fit_conics_2d.h.

template<class T>
unsigned int vgl_fit_conics_2d< T >::min_length_ [protected]
 

Definition at line 37 of file vgl_fit_conics_2d.h.

template<class T>
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.

template<class T>
T vgl_fit_conics_2d< T >::tol_ [protected]
 

Definition at line 38 of file vgl_fit_conics_2d.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:39:26 2008 for core/vgl by  doxygen 1.4.4