#include <ProjectiveBasis2D.h>
Public Member Functions | |
ProjectiveBasis2D (const HomgPoint2D &, const HomgPoint2D &, const HomgPoint2D &, const HomgPoint2D &) | |
Compute projective basis for 4 points. | |
ProjectiveBasis2D (const vcl_vector< HomgPoint2D > &) | |
Compute projective basis for first 4 points in given array. | |
ProjectiveBasis2D (const ProjectiveBasis2D &that) | |
~ProjectiveBasis2D () | |
Destructor. | |
ProjectiveBasis2D & | operator= (const ProjectiveBasis2D &that) |
HMatrix2D & | get_T () |
Return the planar homography that maps the points to the canonical frame. | |
const vnl_double_3x3 & | get_T_matrix () const |
bool | collinear () const |
Were three of the four given basis points collinear ?. | |
Protected Member Functions | |
void | compute (const HomgPoint2D &, const HomgPoint2D &, const HomgPoint2D &, const HomgPoint2D &) |
Find the transformation which maps the 4 points to the canonical projective frame using the linear method of [Beardsley et. | |
Protected Attributes | |
HMatrix2D | T_ |
bool | collinear_ |
Definition at line 32 of file ProjectiveBasis2D.h.
ProjectiveBasis2D::ProjectiveBasis2D | ( | const HomgPoint2D & | p1, |
const HomgPoint2D & | p2, | ||
const HomgPoint2D & | p3, | ||
const HomgPoint2D & | p4 | ||
) |
Compute projective basis for 4 points.
Definition at line 22 of file ProjectiveBasis2D.cxx.
ProjectiveBasis2D::ProjectiveBasis2D | ( | const vcl_vector< HomgPoint2D > & | points | ) |
Compute projective basis for first 4 points in given array.
Definition at line 28 of file ProjectiveBasis2D.cxx.
ProjectiveBasis2D::ProjectiveBasis2D | ( | const ProjectiveBasis2D & | that | ) |
Definition at line 35 of file ProjectiveBasis2D.cxx.
ProjectiveBasis2D::~ProjectiveBasis2D | ( | ) |
Destructor.
Definition at line 48 of file ProjectiveBasis2D.cxx.
bool ProjectiveBasis2D::collinear | ( | ) | const [inline] |
Were three of the four given basis points collinear ?.
Definition at line 54 of file ProjectiveBasis2D.h.
void ProjectiveBasis2D::compute | ( | const HomgPoint2D & | p1, |
const HomgPoint2D & | p2, | ||
const HomgPoint2D & | p3, | ||
const HomgPoint2D & | p4 | ||
) | [protected] |
Find the transformation which maps the 4 points to the canonical projective frame using the linear method of [Beardsley et.
al., ECCV96]. If three of the four points are nearly collinear, an error message is printed, but the computation is still carried out.
Definition at line 57 of file ProjectiveBasis2D.cxx.
HMatrix2D& ProjectiveBasis2D::get_T | ( | ) | [inline] |
Return the planar homography that maps the points to the canonical frame.
Definition at line 50 of file ProjectiveBasis2D.h.
const vnl_double_3x3& ProjectiveBasis2D::get_T_matrix | ( | ) | const [inline] |
Definition at line 51 of file ProjectiveBasis2D.h.
ProjectiveBasis2D & ProjectiveBasis2D::operator= | ( | const ProjectiveBasis2D & | that | ) |
Definition at line 41 of file ProjectiveBasis2D.cxx.
bool ProjectiveBasis2D::collinear_ [protected] |
Definition at line 64 of file ProjectiveBasis2D.h.
HMatrix2D ProjectiveBasis2D::T_ [protected] |
Definition at line 63 of file ProjectiveBasis2D.h.