#include <HMatrix2DComputeLinear.h>
Public Types | |
typedef vcl_vector< HomgPoint2D > | PointArray |
typedef vcl_vector< HomgLine2D > | LineArray |
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_ |
Definition at line 20 of file HMatrix2DComputeLinear.h.
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.
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.
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] |
Reimplemented in HMatrix2DAffineCompute, HMatrix2DEuclideanCompute, and HMatrix2DSimilarityCompute.
Definition at line 61 of file HMatrix2DCompute.cxx.
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] |
Reimplemented in HMatrix2DAffineCompute, HMatrix2DEuclideanCompute, and HMatrix2DSimilarityCompute.
Definition at line 124 of file HMatrix2DCompute.cxx.
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 design matrix:
If allow_ideal_points was set at construction, the 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.
bool HMatrix2DComputeLinear::allow_ideal_points_ [private] |
Definition at line 22 of file HMatrix2DComputeLinear.h.
bool HMatrix2DCompute::verbose_ [protected, inherited] |
Definition at line 57 of file HMatrix2DCompute.h.