vgl_h_matrix_1d< T > Class Template Reference

#include <vgl_h_matrix_1d.h>

List of all members.


Detailed Description

template<class T>
class vgl_h_matrix_1d< T >

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)
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_

Constructor & Destructor Documentation

template<class T>
vgl_h_matrix_1d< T >::vgl_h_matrix_1d (  ) 

Default constructor.

Definition at line 17 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T >::vgl_h_matrix_1d ( const vgl_h_matrix_1d< T > &  M  ) 

Copy constructor.

Definition at line 23 of file vgl_h_matrix_1d.txx.

template<class T>
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.

template<class T>
vgl_h_matrix_1d< T >::vgl_h_matrix_1d ( vnl_matrix_fixed< T, 2, 2 > const &  M  ) 

Constructor.

Definition at line 31 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T >::vgl_h_matrix_1d ( const T *  t_matrix  ) 

Constructor.

Definition at line 46 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T >::vgl_h_matrix_1d ( vcl_istream &  s  ) 

Definition at line 52 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T >::~vgl_h_matrix_1d (  ) 

Destructor.

Definition at line 59 of file vgl_h_matrix_1d.txx.


Member Function Documentation

template<class T>
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.

template<class T>
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.

template<class T>
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.

template<class T>
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.

template<class T>
T vgl_h_matrix_1d< T >::get ( unsigned int  row_index,
unsigned int  col_index 
) const

Get matrix element at (row_index, col_index).

Definition at line 136 of file vgl_h_matrix_1d.txx.

template<class T>
void vgl_h_matrix_1d< T >::get ( T *  t_matrix  )  const

Fill H with contents of this.

Definition at line 143 of file vgl_h_matrix_1d.txx.

template<class T>
void vgl_h_matrix_1d< T >::get ( vnl_matrix< T > *  t_matrix  )  const

Fill H with contents of this.

Definition at line 152 of file vgl_h_matrix_1d.txx.

template<class T>
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.

template<class T>
const vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::get_inverse (  )  const

Return the inverse.

Definition at line 91 of file vgl_h_matrix_1d.txx.

template<class T>
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.

template<class T>
void vgl_h_matrix_1d< T >::set_identity (  )  [inline]

Definition at line 73 of file vgl_h_matrix_1d.h.

template<class T>
void vgl_h_matrix_1d< T >::set ( const T *  t_matrix  ) 

Set to 2x2 row-stored matrix.

Definition at line 159 of file vgl_h_matrix_1d.txx.

template<class T>
void vgl_h_matrix_1d< T >::set ( vnl_matrix_fixed< T, 2, 2 > const &  t_matrix  ) 

Set to given vnl_matrix.

Definition at line 168 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::read ( char const *  filename  )  [static]

Read H from file.

Definition at line 123 of file vgl_h_matrix_1d.txx.

template<class T>
vgl_h_matrix_1d< T > vgl_h_matrix_1d< T >::read ( vcl_istream &   )  [static]

Read H from vcl_istream.

Definition at line 115 of file vgl_h_matrix_1d.txx.


Member Data Documentation

template<class T>
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.


The documentation for this class was generated from the following files:
Generated on Mon Mar 8 05:07:56 2010 for core/vgl by  doxygen 1.5.1