Public Member Functions | Protected Member Functions | Protected Attributes
vgl_compute_similarity_3d< T > Class Template Reference

#include <vgl_compute_similarity_3d.h>

List of all members.

Public Member Functions

 vgl_compute_similarity_3d ()
 vgl_compute_similarity_3d (vcl_vector< vgl_point_3d< T > > const &points1, vcl_vector< vgl_point_3d< T > > const &points2)
 ~vgl_compute_similarity_3d ()
void add_points (vgl_point_3d< T > const &p1, vgl_point_3d< T > const &p2)
 add a pair of points to point sets.
void clear ()
 clear internal data.
bool estimate ()
 estimates the similarity transformation from the stored points.
const vgl_rotation_3d< T > & rotation () const
 Access the estimated rotation.
const vgl_vector_3d< T > & translation () const
 Access the estimated translation.
scale () const
 Access he estimated scale.

Protected Member Functions

void center_points (vcl_vector< vgl_point_3d< T > > &pts, vgl_vector_3d< T > &t) const
 center all the points at the origin, and return the applied translation.
void scale_points (vcl_vector< vgl_point_3d< T > > &pts, T &s) const
 normalize the scale of the points, and return the applied scale.

Protected Attributes

vcl_vector< vgl_point_3d< T > > points1_
vcl_vector< vgl_point_3d< T > > points2_
scale_
vgl_rotation_3d< T > rotation_
vgl_vector_3d< T > translation_

Detailed Description

template<class T>
class vgl_compute_similarity_3d< T >

Definition at line 29 of file vgl_compute_similarity_3d.h.


Constructor & Destructor Documentation

template<class T >
vgl_compute_similarity_3d< T >::vgl_compute_similarity_3d ( ) [inline]

Definition at line 35 of file vgl_compute_similarity_3d.h.

template<class T >
vgl_compute_similarity_3d< T >::vgl_compute_similarity_3d ( vcl_vector< vgl_point_3d< T > > const &  points1,
vcl_vector< vgl_point_3d< T > > const &  points2 
)

Definition at line 18 of file vgl_compute_similarity_3d.txx.

template<class T >
vgl_compute_similarity_3d< T >::~vgl_compute_similarity_3d ( ) [inline]

Definition at line 40 of file vgl_compute_similarity_3d.h.


Member Function Documentation

template<class T >
void vgl_compute_similarity_3d< T >::add_points ( vgl_point_3d< T > const &  p1,
vgl_point_3d< T > const &  p2 
)

add a pair of points to point sets.

Definition at line 28 of file vgl_compute_similarity_3d.txx.

template<class T >
void vgl_compute_similarity_3d< T >::center_points ( vcl_vector< vgl_point_3d< T > > &  pts,
vgl_vector_3d< T > &  t 
) const [protected]

center all the points at the origin, and return the applied translation.

Definition at line 46 of file vgl_compute_similarity_3d.txx.

template<class T >
void vgl_compute_similarity_3d< T >::clear ( )

clear internal data.

Definition at line 36 of file vgl_compute_similarity_3d.txx.

template<class T >
bool vgl_compute_similarity_3d< T >::estimate ( )

estimates the similarity transformation from the stored points.

Definition at line 86 of file vgl_compute_similarity_3d.txx.

template<class T >
const vgl_rotation_3d<T>& vgl_compute_similarity_3d< T >::rotation ( ) const [inline]

Access the estimated rotation.

Definition at line 57 of file vgl_compute_similarity_3d.h.

template<class T >
T vgl_compute_similarity_3d< T >::scale ( ) const [inline]

Access he estimated scale.

Definition at line 63 of file vgl_compute_similarity_3d.h.

template<class T >
void vgl_compute_similarity_3d< T >::scale_points ( vcl_vector< vgl_point_3d< T > > &  pts,
T &  s 
) const [protected]

normalize the scale of the points, and return the applied scale.

The average distance from the origin will be sqrt(3)

Definition at line 67 of file vgl_compute_similarity_3d.txx.

template<class T >
const vgl_vector_3d<T>& vgl_compute_similarity_3d< T >::translation ( ) const [inline]

Access the estimated translation.

Definition at line 60 of file vgl_compute_similarity_3d.h.


Member Data Documentation

template<class T >
vcl_vector<vgl_point_3d<T> > vgl_compute_similarity_3d< T >::points1_ [protected]

Definition at line 78 of file vgl_compute_similarity_3d.h.

template<class T >
vcl_vector<vgl_point_3d<T> > vgl_compute_similarity_3d< T >::points2_ [protected]

Definition at line 79 of file vgl_compute_similarity_3d.h.

template<class T >
vgl_rotation_3d<T> vgl_compute_similarity_3d< T >::rotation_ [protected]

Definition at line 81 of file vgl_compute_similarity_3d.h.

template<class T >
T vgl_compute_similarity_3d< T >::scale_ [protected]

Definition at line 80 of file vgl_compute_similarity_3d.h.

template<class T >
vgl_vector_3d<T> vgl_compute_similarity_3d< T >::translation_ [protected]

Definition at line 82 of file vgl_compute_similarity_3d.h.


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