Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vgl_conic_2d_regression< T > Class Template Reference

#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)
 
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...
 
get_rms_sampson_error () const
 get the current Euclidean fitting error in the original frame. More...
 
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...
 
cost_
 The algebraic fitting cost in the normalized frame. More...
 
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...
 

Detailed Description

template<class T>
class vgl_conic_2d_regression< T >

Definition at line 9 of file vgl_algo_fwd.h.

Constructor & Destructor Documentation

◆ vgl_conic_2d_regression()

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

Constructors.

Definition at line 35 of file vgl_conic_2d_regression.hxx.

◆ ~vgl_conic_2d_regression()

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

Member Function Documentation

◆ add_point()

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

◆ clear_points()

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

clear the regression data.

Definition at line 43 of file vgl_conic_2d_regression.hxx.

◆ compute_partial_sums()

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

Definition at line 115 of file vgl_conic_2d_regression.hxx.

◆ conic()

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.

◆ fill_scatter_matrix()

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

Definition at line 156 of file vgl_conic_2d_regression.hxx.

◆ fit()

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

the fitting method.

Definition at line 191 of file vgl_conic_2d_regression.hxx.

◆ get_n_pts()

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.

◆ get_rms_algebraic_error()

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 109 of file vgl_conic_2d_regression.hxx.

◆ get_rms_error_est()

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 51 of file vgl_conic_2d_regression.hxx.

◆ get_rms_sampson_error()

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.

◆ init()

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

Definition at line 21 of file vgl_conic_2d_regression.hxx.

◆ print_pointset()

template<class T >
void vgl_conic_2d_regression< T >::print_pointset ( std::ostream &  str = std::cout)

Definition at line 238 of file vgl_conic_2d_regression.hxx.

◆ remove_point()

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

◆ set_sampson_error()

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

Definition at line 65 of file vgl_conic_2d_regression.hxx.

Member Data Documentation

◆ conic_

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.

◆ cost_

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.

◆ Dinv_

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.

◆ hnorm_points_

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

◆ npts_

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.

◆ partial_sums_

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

◆ points_

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

◆ S11_

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.

◆ S12_

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.

◆ S22_

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.

◆ sampson_error_

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.

◆ trans_

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: