pop_projective Class Reference

#include <pop_projective.h>

Inheritance diagram for pop_projective:

pop_transform pop_object List of all members.

Detailed Description

A parameter that can be optimized.

Definition at line 23 of file pop_projective.h.


Public Member Functions

 pop_projective (vcl_vector< pop_parameter * > params, pop_vertex *cs1, pop_vertex *cs2)
 constructor.
 ~pop_projective ()
 destructor.
virtual pop_geometric_objecttransform (pop_geometric_object *obj)
 transform a geometric object.
virtual void update ()
 update the transform based on the parameters.
vcl_vector< pop_parameter * > get_parameters ()
 get the parameters.
void set (vcl_vector< pop_parameter * > &params)
 set the parameters.

Protected Attributes

pop_vertexcs1_
pop_vertexcs2_
vcl_vector< pop_parameter * > params_
 the basic parameters.

Private Attributes

vnl_matrix_fixed< double, 3, 3 > trans_

Constructor & Destructor Documentation

pop_projective::pop_projective ( vcl_vector< pop_parameter * >  params,
pop_vertex cs1,
pop_vertex cs2 
)

constructor.

We have an upper triangular 3 by 3 matrix

   |a  s  u0|
   |0  b  v0|
   |0  0  1 |
   
where a and b are the scaling of the image u and v axis. s is the shear and (u0,v0) is the piercing point

the params are a b s u0 v0

Definition at line 14 of file pop_projective.cxx.

pop_projective::~pop_projective (  ) 

destructor.

Definition at line 22 of file pop_projective.cxx.


Member Function Documentation

pop_geometric_object * pop_projective::transform ( pop_geometric_object obj  )  [virtual]

transform a geometric object.

Implements pop_transform.

Definition at line 27 of file pop_projective.cxx.

void pop_projective::update (  )  [virtual]

update the transform based on the parameters.

Implements pop_transform.

Definition at line 61 of file pop_projective.cxx.

vcl_vector<pop_parameter*> pop_object::get_parameters (  )  [inline, inherited]

get the parameters.

Definition at line 36 of file pop_object.h.

void pop_object::set ( vcl_vector< pop_parameter * > &  params  )  [inline, inherited]

set the parameters.

Definition at line 39 of file pop_object.h.


Member Data Documentation

vnl_matrix_fixed<double,3,3> pop_projective::trans_ [private]

Definition at line 52 of file pop_projective.h.

pop_vertex* pop_transform::cs1_ [protected, inherited]

Definition at line 40 of file pop_transform.h.

pop_vertex* pop_transform::cs2_ [protected, inherited]

Definition at line 43 of file pop_transform.h.

vcl_vector<pop_parameter*> pop_object::params_ [protected, inherited]

the basic parameters.

Definition at line 47 of file pop_object.h.


The documentation for this class was generated from the following files:
Generated on Sun Sep 7 05:15:06 2008 for contrib/gel/pop by  doxygen 1.5.1