Public Member Functions | List of all members
vpgl_lens_distortion< T > Class Template Referenceabstract

forward declare vgl_homg_point_2d<T> and vgl_vector_2d<T>. More...

#include <vpgl_lens_distortion.h>

Inheritance diagram for vpgl_lens_distortion< T >:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

template<class T>
class vpgl_lens_distortion< T >

forward declare vgl_homg_point_2d<T> and vgl_vector_2d<T>.

A base class for lens distortions.

Definition at line 23 of file vpgl_lens_distortion.h.

Constructor & Destructor Documentation

◆ ~vpgl_lens_distortion()

template<class T>
virtual vpgl_lens_distortion< T >::~vpgl_lens_distortion ( )
virtualdefault

Member Function Documentation

◆ distort()

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 >.

◆ set_translation()

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 >.

◆ undistort()

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 = nullptr 
) const
virtual

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

Parameters
initis 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 23 of file vpgl_lens_distortion.hxx.


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