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

projection_lsqf Class Reference

#include <vgl_h_matrix_2d_optimize.h>

Inheritance diagram for projection_lsqf:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 25 of file vgl_h_matrix_2d_optimize.h.

Public Types

enum  UseGradient

Public Member Functions

 projection_lsqf (vcl_vector< vgl_homg_point_2d< double > > const &from_points, vcl_vector< vgl_homg_point_2d< double > > const &to_points)
 ~projection_lsqf ()
void f (const vnl_vector< double > &hv, vnl_vector< double > &proj_err)
 compute the projection error given a set of h parameters.
void throw_failure ()
void clear_failure ()
virtual void gradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian)
void fdgradf (vnl_vector< double > const &x, vnl_matrix< double > &jacobian, double stepsize)
virtual void trace (int iteration, vnl_vector< double > const &x, vnl_vector< double > const &fx)
double rms (vnl_vector< double > const &x)
unsigned int get_number_of_unknowns () const
unsigned int get_number_of_residuals () const
bool has_gradient () const

Public Attributes

 no_gradient
 use_gradient
bool failure

Protected Member Functions

void init (unsigned int number_of_unknowns, unsigned int number_of_residuals)

Protected Attributes

unsigned int p_
bool use_gradient_

Private Attributes

unsigned n_
vcl_vector< vgl_homg_point_2d<
double > > 
from_points_
vcl_vector< vgl_point_2d<
double > > 
to_points_


Constructor & Destructor Documentation

projection_lsqf::projection_lsqf vcl_vector< vgl_homg_point_2d< double > > const &  from_points,
vcl_vector< vgl_homg_point_2d< double > > const &  to_points
[inline]
 

Definition at line 32 of file vgl_h_matrix_2d_optimize.h.

projection_lsqf::~projection_lsqf  )  [inline]
 

Definition at line 45 of file vgl_h_matrix_2d_optimize.h.


Member Function Documentation

void projection_lsqf::f const vnl_vector< double > &  hv,
vnl_vector< double > &  proj_err
[inline, virtual]
 

compute the projection error given a set of h parameters.

The residuals required by f are the Euclidean x and y coordinate differences between the projected from points and the corresponding to points.

Implements vnl_least_squares_function.

Definition at line 51 of file vgl_h_matrix_2d_optimize.h.


Member Data Documentation

vcl_vector<vgl_homg_point_2d<double> > projection_lsqf::from_points_ [private]
 

Definition at line 28 of file vgl_h_matrix_2d_optimize.h.

unsigned projection_lsqf::n_ [private]
 

Reimplemented from vnl_least_squares_function.

Definition at line 27 of file vgl_h_matrix_2d_optimize.h.

vcl_vector<vgl_point_2d<double> > projection_lsqf::to_points_ [private]
 

Definition at line 29 of file vgl_h_matrix_2d_optimize.h.


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