#include <vgl_algo_fwd.h>
Public Member Functions | |
| vgl_conic_2d_regression () | |
| Constructors. More... | |
| ~vgl_conic_2d_regression ()=default | |
| unsigned | get_n_pts () const |
| Number of regression points. More... | |
| void | clear_points () |
| clear the regression data. More... | |
| 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. More... | |
| T | get_rms_sampson_error () const |
| get the current Euclidean fitting error in the original frame. More... | |
| T | get_rms_algebraic_error () const |
| get the current algebraic fitting error in the normalized frame. More... | |
| bool | fit () |
| the fitting method. More... | |
| vgl_conic< T > | conic () const |
| void | print_pointset (std::ostream &str=std::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 | |
| std::vector< vgl_point_2d< T > > | points_ |
| The current set of points. More... | |
| unsigned | npts_ |
| Size of point set. More... | |
| vgl_norm_trans_2d< T > | trans_ |
| The normalizing transformation. More... | |
| std::vector< T > | partial_sums_ |
| The partial scatter term sums, updated with each ::add_point. More... | |
| vnl_matrix_fixed< T, 3, 3 > | S11_ |
| The fitting matrices. More... | |
| 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. More... | |
| T | cost_ |
| The algebraic fitting cost in the normalized frame. More... | |
| T | sampson_error_ |
| The Sampson approximation to Euclidean distance in the normalized frame. More... | |
| std::vector< vgl_homg_point_2d< T > > | hnorm_points_ |
| Normalized points. More... | |
Definition at line 9 of file vgl_algo_fwd.h.
| vgl_conic_2d_regression< T >::vgl_conic_2d_regression | ( | ) |
Constructors.
Definition at line 35 of file vgl_conic_2d_regression.hxx.
|
default |
| void vgl_conic_2d_regression< T >::add_point | ( | vgl_point_2d< T > const & | p | ) |
Definition at line 89 of file vgl_conic_2d_regression.hxx.
| void vgl_conic_2d_regression< T >::clear_points | ( | ) |
clear the regression data.
Definition at line 43 of file vgl_conic_2d_regression.hxx.
|
protected |
Definition at line 115 of file vgl_conic_2d_regression.hxx.
|
inline |
Definition at line 107 of file vgl_conic_2d_regression.h.
|
protected |
Definition at line 156 of file vgl_conic_2d_regression.hxx.
| bool vgl_conic_2d_regression< T >::fit | ( | ) |
the fitting method.
Definition at line 191 of file vgl_conic_2d_regression.hxx.
|
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 109 of file vgl_conic_2d_regression.hxx.
| 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 51 of file vgl_conic_2d_regression.hxx.
|
inline |
get the current Euclidean fitting error in the original frame.
Definition at line 97 of file vgl_conic_2d_regression.h.
|
protected |
Definition at line 21 of file vgl_conic_2d_regression.hxx.
| void vgl_conic_2d_regression< T >::print_pointset | ( | std::ostream & | str = std::cout | ) |
Definition at line 238 of file vgl_conic_2d_regression.hxx.
| void vgl_conic_2d_regression< T >::remove_point | ( | vgl_point_2d< T > const & | p | ) |
Definition at line 96 of file vgl_conic_2d_regression.hxx.
|
protected |
Definition at line 65 of file vgl_conic_2d_regression.hxx.
|
protected |
The fitted conic in the un-normalized frame.
Definition at line 137 of file vgl_conic_2d_regression.h.
|
protected |
The algebraic fitting cost in the normalized frame.
Definition at line 140 of file vgl_conic_2d_regression.h.
|
protected |
Definition at line 134 of file vgl_conic_2d_regression.h.
|
protected |
Normalized points.
Definition at line 146 of file vgl_conic_2d_regression.h.
|
protected |
Size of point set.
Definition at line 124 of file vgl_conic_2d_regression.h.
|
protected |
The partial scatter term sums, updated with each ::add_point.
Definition at line 130 of file vgl_conic_2d_regression.h.
|
protected |
The current set of points.
Definition at line 121 of file vgl_conic_2d_regression.h.
|
protected |
The fitting matrices.
Definition at line 133 of file vgl_conic_2d_regression.h.
|
protected |
Definition at line 133 of file vgl_conic_2d_regression.h.
|
protected |
Definition at line 133 of file vgl_conic_2d_regression.h.
|
protected |
The Sampson approximation to Euclidean distance in the normalized frame.
Definition at line 143 of file vgl_conic_2d_regression.h.
|
protected |
The normalizing transformation.
Definition at line 127 of file vgl_conic_2d_regression.h.
1.8.15