Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
HMatrix1D Class Reference

#include <HMatrix1D.h>

List of all members.

Public Member Functions

 HMatrix1D ()
 Default constructor.
 HMatrix1D (const HMatrix1D &M)
 Copy constructor.
 HMatrix1D (const HMatrix1D &, const HMatrix1D &)
 HMatrix1D (vnl_double_2x2 const &M)
 Constructor.
 HMatrix1D (const double *t_matrix)
 Constructor.
 HMatrix1D (vcl_istream &s)
 ~HMatrix1D ()
 Destructor.
vgl_homg_point_1d< double > operator() (const vgl_homg_point_1d< double > &x1) const
 Return the transformed point given by $x_2 = { H} x_1$.
vgl_homg_point_1d< double > preimage (const vgl_homg_point_1d< double > &x2) const
 Return the transformed point given by $x_1 = { H}^{-1} x_2$.
double get (unsigned int row_index, unsigned int col_index) const
 Get matrix element at (row_index, col_index).
void get (double *t_matrix) const
 Fill H with contents of this.
void get (vnl_matrix< double > *t_matrix) const
 Fill H with contents of this.
const vnl_double_2x2get_matrix () const
const vnl_double_2x2get_inverse () const
void set (const double *t_matrix)
 Set to 2x2 row-stored matrix, and cache inverse.
void set (vnl_double_2x2 const &t_matrix)
 Set to given vnl_matrix, and cache inverse.
void set_inverse (vnl_double_2x2 const &t21_matrix)
 Set to inverse of given vnl_matrix, and cache inverse.

Static Public Member Functions

static HMatrix1D read (char const *filename)
 Read H from file.
static HMatrix1D read (vcl_istream &)
 Read H from vcl_istream.

Private Member Functions

vgl_homg_point_1d< double > transform_to_plane2 (const vgl_homg_point_1d< double > &x1) const
 Return the transformed point given by $x_2 = { H} x_1$.
vgl_homg_point_1d< double > transform_to_plane1 (const vgl_homg_point_1d< double > &x2) const
 Return the transformed point given by $x_1 = { H}^{-1} x_2$.

Private Attributes

vnl_double_2x2 t12_matrix_
vnl_double_2x2 t21_matrix_

Detailed Description

Definition at line 23 of file HMatrix1D.h.


Constructor & Destructor Documentation

HMatrix1D::HMatrix1D ( )

Default constructor.

Definition at line 17 of file HMatrix1D.cxx.

HMatrix1D::HMatrix1D ( const HMatrix1D M)

Copy constructor.

Definition at line 22 of file HMatrix1D.cxx.

HMatrix1D::HMatrix1D ( const HMatrix1D A,
const HMatrix1D B 
)

Definition at line 39 of file HMatrix1D.cxx.

HMatrix1D::HMatrix1D ( vnl_double_2x2 const &  M)

Constructor.

Definition at line 31 of file HMatrix1D.cxx.

HMatrix1D::HMatrix1D ( const double *  t_matrix)

Constructor.

Definition at line 48 of file HMatrix1D.cxx.

HMatrix1D::HMatrix1D ( vcl_istream &  s)

Definition at line 54 of file HMatrix1D.cxx.

HMatrix1D::~HMatrix1D ( )

Destructor.

Definition at line 61 of file HMatrix1D.cxx.


Member Function Documentation

double HMatrix1D::get ( unsigned int  row_index,
unsigned int  col_index 
) const

Get matrix element at (row_index, col_index).

Definition at line 115 of file HMatrix1D.cxx.

void HMatrix1D::get ( double *  t_matrix) const

Fill H with contents of this.

Definition at line 121 of file HMatrix1D.cxx.

void HMatrix1D::get ( vnl_matrix< double > *  t_matrix) const

Fill H with contents of this.

Definition at line 129 of file HMatrix1D.cxx.

const vnl_double_2x2& HMatrix1D::get_inverse ( ) const [inline]

Definition at line 65 of file HMatrix1D.h.

const vnl_double_2x2& HMatrix1D::get_matrix ( ) const [inline]

Definition at line 64 of file HMatrix1D.h.

vgl_homg_point_1d< double > HMatrix1D::operator() ( const vgl_homg_point_1d< double > &  x1) const

Return the transformed point given by $x_2 = { H} x_1$.

Definition at line 67 of file HMatrix1D.cxx.

vgl_homg_point_1d< double > HMatrix1D::preimage ( const vgl_homg_point_1d< double > &  x2) const

Return the transformed point given by $x_1 = { H}^{-1} x_2$.

Definition at line 75 of file HMatrix1D.cxx.

HMatrix1D HMatrix1D::read ( char const *  filename) [static]

Read H from file.

Definition at line 103 of file HMatrix1D.cxx.

HMatrix1D HMatrix1D::read ( vcl_istream &  s) [static]

Read H from vcl_istream.

Definition at line 96 of file HMatrix1D.cxx.

void HMatrix1D::set ( const double *  t_matrix)

Set to 2x2 row-stored matrix, and cache inverse.

Definition at line 135 of file HMatrix1D.cxx.

void HMatrix1D::set ( vnl_double_2x2 const &  t_matrix)

Set to given vnl_matrix, and cache inverse.

Definition at line 145 of file HMatrix1D.cxx.

void HMatrix1D::set_inverse ( vnl_double_2x2 const &  t21_matrix)

Set to inverse of given vnl_matrix, and cache inverse.

Definition at line 153 of file HMatrix1D.cxx.

vgl_homg_point_1d<double> HMatrix1D::transform_to_plane1 ( const vgl_homg_point_1d< double > &  x2) const [inline, private]

Return the transformed point given by $x_1 = { H}^{-1} x_2$.

Definition at line 55 of file HMatrix1D.h.

vgl_homg_point_1d<double> HMatrix1D::transform_to_plane2 ( const vgl_homg_point_1d< double > &  x1) const [inline, private]

Return the transformed point given by $x_2 = { H} x_1$.

Definition at line 52 of file HMatrix1D.h.


Member Data Documentation

Definition at line 26 of file HMatrix1D.h.

Definition at line 27 of file HMatrix1D.h.


The documentation for this class was generated from the following files: