#include <vgl_conic_2d_regression.h>
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) |
| 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. | |
| T | get_rms_sampson_error () const |
| get the current Euclidean fitting error in the original frame. | |
| T | 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. | |
| T | cost_ |
| The algebraic fitting cost in the normalized frame. | |
| T | sampson_error_ |
| The Sampson approximation to Euclidean distance in the normalized frame. | |
| vcl_vector< vgl_homg_point_2d < T > > | hnorm_points_ |
| Normalized points. | |
Definition at line 70 of file vgl_conic_2d_regression.h.
| vgl_conic_2d_regression< T >::vgl_conic_2d_regression | ( | ) |
Constructors.
Definition at line 32 of file vgl_conic_2d_regression.txx.
| vgl_conic_2d_regression< T >::~vgl_conic_2d_regression | ( | ) | [inline] |
Definition at line 78 of file vgl_conic_2d_regression.h.
| 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.
| void vgl_conic_2d_regression< T >::clear_points | ( | ) |
clear the regression data.
Definition at line 40 of file vgl_conic_2d_regression.txx.
| void vgl_conic_2d_regression< T >::compute_partial_sums | ( | ) | [protected] |
Definition at line 108 of file vgl_conic_2d_regression.txx.
| vgl_conic<T> vgl_conic_2d_regression< T >::conic | ( | ) | const [inline] |
Definition at line 107 of file vgl_conic_2d_regression.h.
| void vgl_conic_2d_regression< T >::fill_scatter_matrix | ( | ) | [protected] |
Definition at line 149 of file vgl_conic_2d_regression.txx.
| bool vgl_conic_2d_regression< T >::fit | ( | ) |
the fitting method.
Definition at line 184 of file vgl_conic_2d_regression.txx.
| 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.
| 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.
| 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.
| 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.
| void vgl_conic_2d_regression< T >::init | ( | ) | [protected] |
Definition at line 18 of file vgl_conic_2d_regression.txx.
| void vgl_conic_2d_regression< T >::print_pointset | ( | vcl_ostream & | str = vcl_cout | ) |
Definition at line 231 of file vgl_conic_2d_regression.txx.
| 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.
| void vgl_conic_2d_regression< T >::set_sampson_error | ( | T | a, |
| T | b, | ||
| T | c, | ||
| T | d, | ||
| T | e, | ||
| T | f | ||
| ) | [protected] |
Definition at line 58 of file vgl_conic_2d_regression.txx.
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.
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.
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::Dinv_ [protected] |
Definition at line 134 of file vgl_conic_2d_regression.h.
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.
unsigned vgl_conic_2d_regression< T >::npts_ [protected] |
Size of point set.
Definition at line 124 of file vgl_conic_2d_regression.h.
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.
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.
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.
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::S12_ [protected] |
Definition at line 133 of file vgl_conic_2d_regression.h.
vnl_matrix_fixed<T,3,3> vgl_conic_2d_regression< T >::S22_ [protected] |
Definition at line 133 of file vgl_conic_2d_regression.h.
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.
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.
1.7.5.1