#include <vgl_h_matrix_1d.h>
Definition at line 27 of file vgl_h_matrix_1d.h.
Public Member Functions | |
| vgl_h_matrix_1d () | |
| Default constructor. | |
| vgl_h_matrix_1d (const vgl_h_matrix_1d< T > &M) | |
| Copy constructor. | |
| vgl_h_matrix_1d (const vgl_h_matrix_1d< T > &, const vgl_h_matrix_1d< T > &) | |
| vgl_h_matrix_1d (vnl_matrix_fixed< T, 2, 2 > const &M) | |
| Constructor. | |
| vgl_h_matrix_1d (const T *t_matrix) | |
| Constructor. | |
| vgl_h_matrix_1d (vcl_istream &s) | |
| ~vgl_h_matrix_1d () | |
| Destructor. | |
| vgl_homg_point_1d< T > | operator() (const vgl_homg_point_1d< T > &x1) const |
| Return the transformed point given by $x_2 = { H} x_1$. | |
| vgl_homg_point_1d< T > | preimage (const vgl_homg_point_1d< T > &x2) const |
| Return the transformed point given by $x_1 = { H}^{-1} x_2$. | |
| vgl_homg_point_1d< T > | operator * (const vgl_homg_point_1d< T > &x1) const |
| bool | operator== (vgl_h_matrix_1d< T > const &M) |
| 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, 2, 2 > & | get_matrix () const |
| const vgl_h_matrix_1d | get_inverse () const |
| Return the inverse. | |
| bool | projective_basis (vcl_vector< vgl_homg_point_1d< T > > const &three_points) |
| transformation to projective basis (canonical frame). | |
| void | set_identity () |
| void | set (const T *t_matrix) |
| Set to 2x2 row-stored matrix. | |
| void | set (vnl_matrix_fixed< T, 2, 2 > const &t_matrix) |
| Set to given vnl_matrix. | |
Static Public Member Functions | |
| static vgl_h_matrix_1d< T > | read (char const *filename) |
| Read H from file. | |
| static vgl_h_matrix_1d< T > | read (vcl_istream &) |
| Read H from vcl_istream. | |
Protected Attributes | |
| vnl_matrix_fixed< T, 2, 2 > | t12_matrix_ |
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | ) |
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | const vgl_h_matrix_1d< T > & | M | ) |
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | const vgl_h_matrix_1d< T > & | , | |
| const vgl_h_matrix_1d< T > & | ||||
| ) |
Definition at line 38 of file vgl_h_matrix_1d.txx.
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | vnl_matrix_fixed< T, 2, 2 > const & | M | ) |
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | const T * | t_matrix | ) |
| vgl_h_matrix_1d< T >::vgl_h_matrix_1d | ( | vcl_istream & | s | ) |
Definition at line 52 of file vgl_h_matrix_1d.txx.
| vgl_h_matrix_1d< T >::~vgl_h_matrix_1d | ( | ) |
| vgl_homg_point_1d< T > vgl_h_matrix_1d< T >::operator() | ( | const vgl_homg_point_1d< T > & | x1 | ) | const |
Return the transformed point given by $x_2 = { H} x_1$.
Definition at line 67 of file vgl_h_matrix_1d.txx.
| vgl_homg_point_1d< T > vgl_h_matrix_1d< T >::preimage | ( | const vgl_homg_point_1d< T > & | x2 | ) | const |
Return the transformed point given by $x_1 = { H}^{-1} x_2$.
Definition at line 75 of file vgl_h_matrix_1d.txx.
| vgl_homg_point_1d< T > vgl_h_matrix_1d< T >::operator * | ( | const vgl_homg_point_1d< T > & | x1 | ) | const |
Definition at line 83 of file vgl_h_matrix_1d.txx.
| bool vgl_h_matrix_1d< T >::operator== | ( | vgl_h_matrix_1d< T > const & | M | ) | [inline] |
Definition at line 51 of file vgl_h_matrix_1d.h.
| T vgl_h_matrix_1d< T >::get | ( | unsigned int | row_index, | |
| unsigned int | col_index | |||
| ) | const |
| void vgl_h_matrix_1d< T >::get | ( | T * | t_matrix | ) | const |
| void vgl_h_matrix_1d< T >::get | ( | vnl_matrix< T > * | t_matrix | ) | const |
| const vnl_matrix_fixed<T,2,2>& vgl_h_matrix_1d< T >::get_matrix | ( | ) | const [inline] |
Definition at line 58 of file vgl_h_matrix_1d.h.
| const vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::get_inverse | ( | ) | const |
| bool vgl_h_matrix_1d< T >::projective_basis | ( | vcl_vector< vgl_homg_point_1d< T > > const & | three_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:
p[0]p[1]p[2]
1 0 1
0 1 1
Definition at line 176 of file vgl_h_matrix_1d.txx.
| void vgl_h_matrix_1d< T >::set_identity | ( | ) | [inline] |
Definition at line 73 of file vgl_h_matrix_1d.h.
| void vgl_h_matrix_1d< T >::set | ( | const T * | t_matrix | ) |
| void vgl_h_matrix_1d< T >::set | ( | vnl_matrix_fixed< T, 2, 2 > const & | t_matrix | ) |
| vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::read | ( | char const * | filename | ) | [static] |
| vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::read | ( | vcl_istream & | ) | [static] |
vnl_matrix_fixed<T,2,2> vgl_h_matrix_1d< T >::t12_matrix_ [protected] |
Definition at line 31 of file vgl_h_matrix_1d.h.
1.5.1