Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vpgl_lens_distortion< T > Class Template Reference

#include <vpgl_lens_distortion.h>

Inheritance diagram for vpgl_lens_distortion< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T>
class vpgl_lens_distortion< T >

A base class for lens distortions.

Definition at line 23 of file vpgl_lens_distortion.h.

Public Member Functions

virtual ~vpgl_lens_distortion ()
virtual vgl_homg_point_2d< T > distort (const vgl_homg_point_2d< T > &point) const =0
 Distort a projected point on the image plane.
virtual vgl_homg_point_2d< T > undistort (const vgl_homg_point_2d< T > &point, const vgl_homg_point_2d< T > *init=0) const
 Return the original point that was distorted to this location (inverse of distort).
virtual void set_translation (const vgl_vector_2d< T > &offset, bool after=true)=0
 Set a translation to apply before of after distortion.


Constructor & Destructor Documentation

template<class T>
virtual vpgl_lens_distortion< T >::~vpgl_lens_distortion  )  [inline, virtual]
 

Definition at line 27 of file vpgl_lens_distortion.h.


Member Function Documentation

template<class T>
virtual vgl_homg_point_2d<T> vpgl_lens_distortion< T >::distort const vgl_homg_point_2d< T > &  point  )  const [pure virtual]
 

Distort a projected point on the image plane.

Implemented in vpgl_radial_distortion< T >.

template<class T>
virtual void vpgl_lens_distortion< T >::set_translation const vgl_vector_2d< T > &  offset,
bool  after = true
[pure virtual]
 

Set a translation to apply before of after distortion.

This is needed when distorting an image to translate the resulting image such that all points have positive indices

Implemented in vpgl_radial_distortion< T >.

template<class T>
vgl_homg_point_2d< T > vpgl_lens_distortion< T >::undistort const vgl_homg_point_2d< T > &  point,
const vgl_homg_point_2d< T > *  init = 0
const [virtual]
 

Return the original point that was distorted to this location (inverse of distort).

Parameters:
init is an initial guess at the solution for the iterative solver if init is NULL then point is used as the initial guess

Reimplemented in vpgl_radial_distortion< T >.

Definition at line 17 of file vpgl_lens_distortion.txx.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:49:15 2008 for contrib/gel/mrc/vpgl by  doxygen 1.4.4