Public Member Functions | Private Attributes
FManifoldProject Class Reference

#include <FManifoldProject.h>

List of all members.

Public Member Functions

 FManifoldProject ()
 Construct an FManifoldProject object with the intention of later setting its F.
 FManifoldProject (const FMatrix &F)
 Construct an FManifoldProject object which will use the given F to correct point pairs.
void set_F (const FMatrix &F)
 Use the given F to correct point pairs.
double correct (vgl_homg_point_2d< double > const &point1, vgl_homg_point_2d< double > const &point2, vgl_homg_point_2d< double > &out1, vgl_homg_point_2d< double > &out2) const
 Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.
double correct (const HomgPoint2D &point1, const HomgPoint2D &point2, HomgPoint2D *, HomgPoint2D *) const
 Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.
double correct (double x1, double y1, double x2, double y2, double *ox1, double *oy1, double *ox2, double *oy2) const
 Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.
vnl_double_3x3 const & get_F () const

Private Attributes

vnl_double_3x3 F_
vnl_double_4x4 A_
vnl_double_4 t_
vnl_double_4x4 V_
vnl_double_4 d_
bool affine_F_

Detailed Description

Definition at line 39 of file FManifoldProject.h.


Constructor & Destructor Documentation

FManifoldProject::FManifoldProject ( )

Construct an FManifoldProject object with the intention of later setting its F.

Definition at line 33 of file FManifoldProject.cxx.

FManifoldProject::FManifoldProject ( const FMatrix F)

Construct an FManifoldProject object which will use the given F to correct point pairs.

Definition at line 27 of file FManifoldProject.cxx.


Member Function Documentation

double FManifoldProject::correct ( vgl_homg_point_2d< double > const &  p1,
vgl_homg_point_2d< double > const &  p2,
vgl_homg_point_2d< double > &  out1,
vgl_homg_point_2d< double > &  out2 
) const

Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.

Returns the minimum distance squared: ||x[1..4] - p[1..4]||^2.

Definition at line 110 of file FManifoldProject.cxx.

double FManifoldProject::correct ( const HomgPoint2D p1,
const HomgPoint2D p2,
HomgPoint2D out1,
HomgPoint2D out2 
) const

Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.

Returns the minimum distance squared: ||x[1..4] - p[1..4]||^2.

Definition at line 131 of file FManifoldProject.cxx.

double FManifoldProject::correct ( double  x1,
double  y1,
double  x2,
double  y2,
double *  ox1,
double *  oy1,
double *  ox2,
double *  oy2 
) const

Find the points out1, out2 which minimize d(out1,p1) + d(out2,p2) subject to out1'*F*out2 = 0.

Returns the minimum distance squared: ||x[1..4] - p[1..4]||^2.

Definition at line 152 of file FManifoldProject.cxx.

vnl_double_3x3 const& FManifoldProject::get_F ( ) const [inline]

Definition at line 64 of file FManifoldProject.h.

void FManifoldProject::set_F ( const FMatrix F)

Use the given F to correct point pairs.

Definition at line 36 of file FManifoldProject.cxx.


Member Data Documentation

Definition at line 44 of file FManifoldProject.h.

Definition at line 49 of file FManifoldProject.h.

vnl_double_4 FManifoldProject::d_ [private]

Definition at line 47 of file FManifoldProject.h.

Definition at line 41 of file FManifoldProject.h.

vnl_double_4 FManifoldProject::t_ [private]

Definition at line 45 of file FManifoldProject.h.

Definition at line 46 of file FManifoldProject.h.


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