#include <vgl_h_matrix_2d.h>
Inheritance diagram for vgl_h_matrix_2d< T >:

transfer point.
Definition at line 30 of file vgl_h_matrix_2d.h.
Public Member Functions | |
| vgl_h_matrix_2d () | |
| Default constructor. | |
| vgl_h_matrix_2d (const vgl_h_matrix_2d< T > &M) | |
| Copy constructor. | |
| vgl_h_matrix_2d (vnl_matrix_fixed< T, 3, 3 > const &M) | |
| Constructor. | |
| vgl_h_matrix_2d (const T *t_matrix) | |
| Constructor. | |
| vgl_h_matrix_2d (vcl_istream &s) | |
| Constructor from vcl_istream. | |
| vgl_h_matrix_2d (char const *filename) | |
| Constructor from file. | |
| ~vgl_h_matrix_2d () | |
| Destructor. | |
| vgl_homg_point_2d< T > | operator() (vgl_homg_point_2d< T > const &p) const |
| vgl_homg_point_2d< T > | operator * (vgl_homg_point_2d< T > const &p) const |
| bool | operator== (vgl_h_matrix_2d< T > const &M) |
| vgl_homg_line_2d< T > | preimage (vgl_homg_line_2d< T > const &l) const |
| vgl_homg_line_2d< T > | correlation (vgl_homg_point_2d< T > const &p) const |
| vgl_homg_point_2d< T > | correlation (vgl_homg_line_2d< T > const &l) const |
| vgl_conic< T > | operator() (vgl_conic< T > const &C) const |
| assumed to be a point conic. | |
| vgl_homg_point_2d< T > | preimage (vgl_homg_point_2d< T > const &p) const |
| vgl_conic< T > | preimage (vgl_conic< T > const &C) const |
| vgl_homg_line_2d< T > | operator() (vgl_homg_line_2d< T > const &l) const |
| vgl_homg_line_2d< T > | operator * (vgl_homg_line_2d< T > const &l) const |
| vgl_h_matrix_2d | operator * (const vgl_h_matrix_2d &h2) const |
| Composition. | |
| T | get (unsigned int row_index, unsigned int col_index) const |
| Get matrix element at (row_index, col_index). | |
| void | get (T *t_matrix) const |
| Fill H with contents of this. | |
| void | get (vnl_matrix< T > *t_matrix) const |
| Fill H with contents of this. | |
| const vnl_matrix_fixed< T, 3, 3 > & | get_matrix () const |
| const vgl_h_matrix_2d | get_inverse () const |
| Return the inverse. | |
| void | set (const T *t_matrix) |
| Set to 3x3 row-stored matrix. | |
| void | set (vnl_matrix_fixed< T, 3, 3 > const &t_matrix) |
| Set to given vnl_matrix. | |
| void | set_identity () |
| initialize the transformation to identity. | |
| void | set_translation (const T tx, const T ty) |
| set T[0][2] = tx and T[1][2] = ty, other elements unaltered. | |
| void | set_rotation (const T theta) |
| the upper 2x2 part of the matrix is replaced by a rotation matrix. | |
| void | set_scale (const T scale) |
| initialize the transform to a scaling transform. | |
| void | set_aspect_ratio (const T aspect_ratio) |
| initialize the transform to a diagonal aspect transform. | |
| bool | projective_basis (vcl_vector< vgl_homg_point_2d< T > > const &four_points) |
| transformation to projective basis (canonical frame). | |
| bool | projective_basis (vcl_vector< vgl_homg_line_2d< T > > const &four_lines) |
| transformation to projective basis (canonical frame). | |
| bool | read (vcl_istream &s) |
| Read H from vcl_istream. | |
| bool | read (char const *filename) |
| Read H from file. | |
Protected Attributes | |
| vnl_matrix_fixed< T, 3, 3 > | t12_matrix_ |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | ) |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | const vgl_h_matrix_2d< T > & | M | ) |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | vnl_matrix_fixed< T, 3, 3 > const & | M | ) |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | const T * | t_matrix | ) |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | vcl_istream & | s | ) |
| vgl_h_matrix_2d< T >::vgl_h_matrix_2d | ( | char const * | filename | ) |
| vgl_h_matrix_2d< T >::~vgl_h_matrix_2d | ( | ) |
| vgl_homg_point_2d< T > vgl_h_matrix_2d< T >::operator() | ( | vgl_homg_point_2d< T > const & | p | ) | const |
Definition at line 75 of file vgl_h_matrix_2d.txx.
| vgl_homg_point_2d<T> vgl_h_matrix_2d< T >::operator * | ( | vgl_homg_point_2d< T > const & | p | ) | const [inline] |
Definition at line 52 of file vgl_h_matrix_2d.h.
| bool vgl_h_matrix_2d< T >::operator== | ( | vgl_h_matrix_2d< T > const & | M | ) | [inline] |
Definition at line 53 of file vgl_h_matrix_2d.h.
| vgl_homg_line_2d< T > vgl_h_matrix_2d< T >::preimage | ( | vgl_homg_line_2d< T > const & | l | ) | const |
Definition at line 84 of file vgl_h_matrix_2d.txx.
| vgl_homg_line_2d< T > vgl_h_matrix_2d< T >::correlation | ( | vgl_homg_point_2d< T > const & | p | ) | const |
Definition at line 93 of file vgl_h_matrix_2d.txx.
| vgl_homg_point_2d< T > vgl_h_matrix_2d< T >::correlation | ( | vgl_homg_line_2d< T > const & | l | ) | const |
Definition at line 102 of file vgl_h_matrix_2d.txx.
| vgl_conic< T > vgl_h_matrix_2d< T >::operator() | ( | vgl_conic< T > const & | C | ) | const |
| vgl_homg_point_2d< T > vgl_h_matrix_2d< T >::preimage | ( | vgl_homg_point_2d< T > const & | p | ) | const |
Definition at line 138 of file vgl_h_matrix_2d.txx.
| vgl_conic< T > vgl_h_matrix_2d< T >::preimage | ( | vgl_conic< T > const & | C | ) | const |
Definition at line 123 of file vgl_h_matrix_2d.txx.
| vgl_homg_line_2d< T > vgl_h_matrix_2d< T >::operator() | ( | vgl_homg_line_2d< T > const & | l | ) | const |
Definition at line 147 of file vgl_h_matrix_2d.txx.
| vgl_homg_line_2d<T> vgl_h_matrix_2d< T >::operator * | ( | vgl_homg_line_2d< T > const & | l | ) | const [inline] |
Definition at line 66 of file vgl_h_matrix_2d.h.
| vgl_h_matrix_2d vgl_h_matrix_2d< T >::operator * | ( | const vgl_h_matrix_2d< T > & | h2 | ) | const [inline] |
| T vgl_h_matrix_2d< T >::get | ( | unsigned int | row_index, | |
| unsigned int | col_index | |||
| ) | const |
| void vgl_h_matrix_2d< T >::get | ( | T * | t_matrix | ) | const |
| void vgl_h_matrix_2d< T >::get | ( | vnl_matrix< T > * | t_matrix | ) | const |
| const vnl_matrix_fixed<T,3,3>& vgl_h_matrix_2d< T >::get_matrix | ( | ) | const [inline] |
Definition at line 76 of file vgl_h_matrix_2d.h.
| const vgl_h_matrix_2d< T > vgl_h_matrix_2d< T >::get_inverse | ( | ) | const |
| void vgl_h_matrix_2d< T >::set | ( | const T * | t_matrix | ) |
| void vgl_h_matrix_2d< T >::set | ( | vnl_matrix_fixed< T, 3, 3 > const & | t_matrix | ) |
| void vgl_h_matrix_2d< T >::set_identity | ( | ) |
| void vgl_h_matrix_2d< T >::set_translation | ( | const T | tx, | |
| const T | ty | |||
| ) |
set T[0][2] = tx and T[1][2] = ty, other elements unaltered.
Definition at line 363 of file vgl_h_matrix_2d.txx.
| void vgl_h_matrix_2d< T >::set_rotation | ( | const T | theta | ) |
the upper 2x2 part of the matrix is replaced by a rotation matrix.
theta is in radians
Definition at line 370 of file vgl_h_matrix_2d.txx.
| void vgl_h_matrix_2d< T >::set_scale | ( | const T | scale | ) |
initialize the transform to a scaling transform.
$S = [ {array}{ccc} s & 0 & 0 \% 0 & s & 0 \% 0 & 0 & 1 {array}]$ , Ts = S*T.
Definition at line 386 of file vgl_h_matrix_2d.txx.
| void vgl_h_matrix_2d< T >::set_aspect_ratio | ( | const T | aspect_ratio | ) |
initialize the transform to a diagonal aspect transform.
$A = [ {array}{ccc} 1 & 0 & 0 \% 0 & a & 0 \% 0 & 0 & 1 {array}]$ , Ta = A*T.
Definition at line 401 of file vgl_h_matrix_2d.txx.
| bool vgl_h_matrix_2d< T >::projective_basis | ( | vcl_vector< vgl_homg_point_2d< T > > const & | four_points | ) |
transformation to projective basis (canonical frame).
Compute the homography that takes the input set of points to the canonical frame. The points act as the projective basis for the canonical coordinate system. In the canonical frame the points have coordinates: ${array}{cccc} p[0] & p[1] & p[2] & p[3] \% 1 & 0 & 0 & 1 \% 0 & 1 & 0 & 1 \% 0 & 0 & 1 & 1 {array}$
Definition at line 239 of file vgl_h_matrix_2d.txx.
| bool vgl_h_matrix_2d< T >::projective_basis | ( | vcl_vector< vgl_homg_line_2d< T > > const & | four_lines | ) |
transformation to projective basis (canonical frame).
Compute the homography that takes the input set of lines to the canonical frame. The lines act as the dual projective basis for the canonical coordinate system. In the canonical frame the lines have equations: x=0; y=0; w=0; x+y+w=0. (The third line is the line at infinity.)
Definition at line 294 of file vgl_h_matrix_2d.txx.
| bool vgl_h_matrix_2d< T >::read | ( | vcl_istream & | s | ) |
| bool vgl_h_matrix_2d< T >::read | ( | char const * | filename | ) |
vnl_matrix_fixed<T,3,3> vgl_h_matrix_2d< T >::t12_matrix_ [protected] |
Definition at line 34 of file vgl_h_matrix_2d.h.
1.5.1