Public Member Functions | Protected Member Functions | Protected Attributes
vgl_conic_2d_regression< T > Class Template Reference

#include <vgl_conic_2d_regression.h>

List of all members.

Public Member Functions

 vgl_conic_2d_regression ()
 Constructors.
 ~vgl_conic_2d_regression ()
unsigned get_n_pts () const
 Number of regression points.
void clear_points ()
 clear the regression data.
void add_point (vgl_point_2d< T > const &p)
void remove_point (vgl_point_2d< T > const &p)
get_rms_error_est (vgl_point_2d< T > const &p) const
 get the estimated Euclidean error with respect to the fitted conic segment in the original frame.
get_rms_sampson_error () const
 get the current Euclidean fitting error in the original frame.
get_rms_algebraic_error () const
 get the current algebraic fitting error in the normalized frame.
bool fit ()
 the fitting method.
vgl_conic< T > conic () const
void print_pointset (vcl_ostream &str=vcl_cout)

Protected Member Functions

void init ()
void compute_partial_sums ()
void fill_scatter_matrix ()
void set_sampson_error (T a, T b, T c, T d, T e, T f)

Protected Attributes

vcl_vector< vgl_point_2d< T > > points_
 The current set of points.
unsigned npts_
 Size of point set.
vgl_norm_trans_2d< T > trans_
 The normalizing transformation.
vcl_vector< T > partial_sums_
 The partial scatter term sums, updated with each ::add_point.
vnl_matrix_fixed< T, 3, 3 > S11_
 The fitting matrices.
vnl_matrix_fixed< T, 3, 3 > S12_
vnl_matrix_fixed< T, 3, 3 > S22_
vnl_matrix_fixed< T, 3, 3 > Dinv_
vgl_conic< T > conic_
 The fitted conic in the un-normalized frame.
cost_
 The algebraic fitting cost in the normalized frame.
sampson_error_
 The Sampson approximation to Euclidean distance in the normalized frame.
vcl_vector< vgl_homg_point_2d
< T > > 
hnorm_points_
 Normalized points.

Detailed Description

template<class T>
class vgl_conic_2d_regression< T >

Definition at line 70 of file vgl_conic_2d_regression.h.


Constructor & Destructor Documentation

template<class T >
vgl_conic_2d_regression< T >::vgl_conic_2d_regression ( )

Constructors.

Definition at line 32 of file vgl_conic_2d_regression.txx.

template<class T>
vgl_conic_2d_regression< T >::~vgl_conic_2d_regression ( ) [inline]

Definition at line 78 of file vgl_conic_2d_regression.h.


Member Function Documentation

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

Definition at line 82 of file vgl_conic_2d_regression.txx.

template<class T >
void vgl_conic_2d_regression< T >::clear_points ( )

clear the regression data.

Definition at line 40 of file vgl_conic_2d_regression.txx.

template<class T >
void vgl_conic_2d_regression< T >::compute_partial_sums ( ) [protected]

Definition at line 108 of file vgl_conic_2d_regression.txx.

template<class T>
vgl_conic<T> vgl_conic_2d_regression< T >::conic ( ) const [inline]

Definition at line 107 of file vgl_conic_2d_regression.h.

template<class T >
void vgl_conic_2d_regression< T >::fill_scatter_matrix ( ) [protected]

Definition at line 149 of file vgl_conic_2d_regression.txx.

template<class T >
bool vgl_conic_2d_regression< T >::fit ( )

the fitting method.

Definition at line 184 of file vgl_conic_2d_regression.txx.

template<class T>
unsigned vgl_conic_2d_regression< T >::get_n_pts ( ) const [inline]

Number of regression points.

Definition at line 84 of file vgl_conic_2d_regression.h.

template<class T >
T vgl_conic_2d_regression< T >::get_rms_algebraic_error ( ) const

get the current algebraic fitting error in the normalized frame.

Definition at line 102 of file vgl_conic_2d_regression.txx.

template<class T >
T vgl_conic_2d_regression< T >::get_rms_error_est ( vgl_point_2d< T > const &  p) const

get the estimated Euclidean error with respect to the fitted conic segment in the original frame.

Definition at line 48 of file vgl_conic_2d_regression.txx.

template<class T>
T vgl_conic_2d_regression< T >::get_rms_sampson_error ( ) const [inline]

get the current Euclidean fitting error in the original frame.

Definition at line 97 of file vgl_conic_2d_regression.h.

template<class T >
void vgl_conic_2d_regression< T >::init ( ) [protected]

Definition at line 18 of file vgl_conic_2d_regression.txx.

template<class T >
void vgl_conic_2d_regression< T >::print_pointset ( vcl_ostream &  str = vcl_cout)

Definition at line 231 of file vgl_conic_2d_regression.txx.

template<class T >
void vgl_conic_2d_regression< T >::remove_point ( vgl_point_2d< T > const &  p)

Definition at line 89 of file vgl_conic_2d_regression.txx.

template<class T >
void vgl_conic_2d_regression< T >::set_sampson_error ( a,
b,
c,
d,
e,
f 
) [protected]

Definition at line 58 of file vgl_conic_2d_regression.txx.


Member Data Documentation

template<class T>
vgl_conic<T> vgl_conic_2d_regression< T >::conic_ [protected]

The fitted conic in the un-normalized frame.

Definition at line 137 of file vgl_conic_2d_regression.h.

template<class T>
T vgl_conic_2d_regression< T >::cost_ [protected]

The algebraic fitting cost in the normalized frame.

Definition at line 140 of file vgl_conic_2d_regression.h.

template<class T>
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::Dinv_ [protected]

Definition at line 134 of file vgl_conic_2d_regression.h.

template<class T>
vcl_vector<vgl_homg_point_2d<T> > vgl_conic_2d_regression< T >::hnorm_points_ [protected]

Normalized points.

Definition at line 146 of file vgl_conic_2d_regression.h.

template<class T>
unsigned vgl_conic_2d_regression< T >::npts_ [protected]

Size of point set.

Definition at line 124 of file vgl_conic_2d_regression.h.

template<class T>
vcl_vector<T> vgl_conic_2d_regression< T >::partial_sums_ [protected]

The partial scatter term sums, updated with each ::add_point.

Definition at line 130 of file vgl_conic_2d_regression.h.

template<class T>
vcl_vector<vgl_point_2d<T> > vgl_conic_2d_regression< T >::points_ [protected]

The current set of points.

Definition at line 121 of file vgl_conic_2d_regression.h.

template<class T>
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::S11_ [protected]

The fitting matrices.

Definition at line 133 of file vgl_conic_2d_regression.h.

template<class T>
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::S12_ [protected]

Definition at line 133 of file vgl_conic_2d_regression.h.

template<class T>
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::S22_ [protected]

Definition at line 133 of file vgl_conic_2d_regression.h.

template<class T>
T vgl_conic_2d_regression< T >::sampson_error_ [protected]

The Sampson approximation to Euclidean distance in the normalized frame.

Definition at line 143 of file vgl_conic_2d_regression.h.

template<class T>
vgl_norm_trans_2d<T> vgl_conic_2d_regression< T >::trans_ [protected]

The normalizing transformation.

Definition at line 127 of file vgl_conic_2d_regression.h.


The documentation for this class was generated from the following files: