Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
HMatrix2DComputeLinear Class Reference

#include <HMatrix2DComputeLinear.h>

Inheritance diagram for HMatrix2DComputeLinear:
Inheritance graph
[legend]

List of all members.

Public Types

typedef vcl_vector< HomgPoint2DPointArray
typedef vcl_vector< HomgLine2DLineArray

Public Member Functions

 HMatrix2DComputeLinear (bool allow_ideal_points=false)
 Construct a HMatrix2DComputeLinear object.
int minimum_number_of_correspondences () const
void verbose (bool v)
bool compute (PointArray const &, PointArray const &, HMatrix2D *)
bool compute (LineArray const &, LineArray const &, HMatrix2D *)
bool compute (PointArray const &, PointArray const &, LineArray const &, LineArray const &, HMatrix2D *)
bool compute (PairMatchSetCorner const &, HMatrix2D *)
HMatrix2D compute (PointArray const &, PointArray const &)
HMatrix2D compute (LineArray const &, LineArray const &)
HMatrix2D compute (PointArray const &, PointArray const &, LineArray const &, LineArray const &)
HMatrix2D compute (PairMatchSetCorner const &)

Protected Member Functions

bool compute_p (PointArray const &, PointArray const &, HMatrix2D *H)
 Compute a plane-plane projectivity using linear least squares.
virtual bool compute_l (LineArray const &, LineArray const &, HMatrix2D *)
virtual bool compute_pl (PointArray const &, PointArray const &, LineArray const &, LineArray const &, HMatrix2D *)

Protected Attributes

bool verbose_

Private Attributes

bool allow_ideal_points_

Detailed Description

Definition at line 20 of file HMatrix2DComputeLinear.h.


Member Typedef Documentation

typedef vcl_vector<HomgLine2D> HMatrix2DCompute::LineArray [inherited]

Definition at line 38 of file HMatrix2DCompute.h.

typedef vcl_vector<HomgPoint2D> HMatrix2DCompute::PointArray [inherited]

Definition at line 37 of file HMatrix2DCompute.h.


Constructor & Destructor Documentation

HMatrix2DComputeLinear::HMatrix2DComputeLinear ( bool  allow_ideal_points = false)

Construct a HMatrix2DComputeLinear object.

The allow_ideal_points flag is described below.

Definition at line 16 of file HMatrix2DComputeLinear.cxx.


Member Function Documentation

bool HMatrix2DCompute::compute ( PointArray const &  p1,
PointArray const &  p2,
HMatrix2D H 
) [inherited]

Definition at line 53 of file HMatrix2DCompute.cxx.

bool HMatrix2DCompute::compute ( LineArray const &  l1,
LineArray const &  l2,
HMatrix2D H 
) [inherited]

Definition at line 72 of file HMatrix2DCompute.cxx.

bool HMatrix2DCompute::compute ( PointArray const &  p1,
PointArray const &  p2,
LineArray const &  l1,
LineArray const &  l2,
HMatrix2D H 
) [inherited]

Definition at line 91 of file HMatrix2DCompute.cxx.

bool HMatrix2DCompute::compute ( PairMatchSetCorner const &  matches,
HMatrix2D H 
) [inherited]

Definition at line 114 of file HMatrix2DCompute.cxx.

HMatrix2D HMatrix2DCompute::compute ( PointArray const &  p1,
PointArray const &  p2 
) [inherited]
HMatrix2D HMatrix2DCompute::compute ( LineArray const &  l1,
LineArray const &  l2 
) [inherited]

Definition at line 80 of file HMatrix2DCompute.cxx.

HMatrix2D HMatrix2DCompute::compute ( PointArray const &  p1,
PointArray const &  p2,
LineArray const &  l1,
LineArray const &  l2 
) [inherited]

Definition at line 101 of file HMatrix2DCompute.cxx.

HMatrix2D HMatrix2DCompute::compute ( PairMatchSetCorner const &  matches) [inherited]
bool HMatrix2DCompute::compute_l ( LineArray const &  l1,
LineArray const &  l2,
HMatrix2D H 
) [protected, virtual, inherited]

Reimplemented in HMatrix2DCompute4Line.

Definition at line 20 of file HMatrix2DCompute.cxx.

bool HMatrix2DComputeLinear::compute_p ( PointArray const &  inpoints1,
PointArray const &  inpoints2,
HMatrix2D H 
) [protected, virtual]

Compute a plane-plane projectivity using linear least squares.

Returns false if the calculation fails or there are fewer than four point matches in the list. The algorithm finds the nullvector of the $2 n \times 9$ design matrix:

\[ \left(\begin{array}{ccccccccc} 0 & 0 & 0 & x_1 z_1' & y_1 z_1' & z_1 z_1' & -x_1 y_1' & -y_1 y_1' & -z_1 y_1' \cr x_1 z_1' & y_1 z_1' & z_1 z_1' & 0 & 0 & 0 & -x_1 x_1' & -y_1 x_1' & -z_1 x_1' \cr \multicolumn{9}{c}{\cdots} \cr 0 & 0 & 0 & x_n z_n' & y_n z_n' & z_n z_n' & -x_n y_n' & -y_n y_n' & -z_n y_n'\cr x_n z_n' & y_n z_n' & z_n z_n' & 0 & 0 & 0 & -x_n x_n' & -y_n x_n' & -z_n x_n' \end{array}\right) \]

If allow_ideal_points was set at construction, the $3 \times 9$ version which allows for ideal points is used.

Reimplemented from HMatrix2DCompute.

Definition at line 51 of file HMatrix2DComputeLinear.cxx.

bool HMatrix2DCompute::compute_pl ( PointArray const &  ,
PointArray const &  ,
LineArray const &  ,
LineArray const &  ,
HMatrix2D  
) [protected, virtual, inherited]

Definition at line 29 of file HMatrix2DCompute.cxx.

int HMatrix2DComputeLinear::minimum_number_of_correspondences ( ) const [inline, virtual]

Implements HMatrix2DCompute.

Definition at line 31 of file HMatrix2DComputeLinear.h.

void HMatrix2DCompute::verbose ( bool  v) [inline, inherited]

Definition at line 31 of file HMatrix2DCompute.h.


Member Data Documentation

Definition at line 22 of file HMatrix2DComputeLinear.h.

bool HMatrix2DCompute::verbose_ [protected, inherited]

Definition at line 57 of file HMatrix2DCompute.h.


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