A base class for radial lens distortions. More...
#include <vpgl_radial_distortion.h>

Public Member Functions | |
| vpgl_radial_distortion (const vgl_point_2d< T > ¢er, bool has_deriv=false) | |
| Constructor. More... | |
| vpgl_radial_distortion (const vgl_point_2d< T > ¢er, const vgl_point_2d< T > &new_center, bool has_deriv=false) | |
| Constructor. More... | |
| vgl_homg_point_2d< T > | distort (const vgl_homg_point_2d< T > &point) const override |
| Distort a projected point on the image plane. More... | |
| vgl_homg_point_2d< T > | undistort (const vgl_homg_point_2d< T > &point, const vgl_homg_point_2d< T > *init=nullptr) const override |
| Return the original point that was distorted to this location (inverse of distort). More... | |
| virtual T | distort_radius (T radius) const =0 |
| Distort a radial length. More... | |
| virtual T | undistort_radius (T radius, const T *init=nullptr) const |
| Return the inverse of distort function. More... | |
| virtual T | distort_radius_deriv (T radius) const |
| Compute the derivative of the distort_radius function. More... | |
| void | set_translation (const vgl_vector_2d< T > &offset, bool after=true) override |
| Set a translation to apply before of after distortion. More... | |
| vgl_point_2d< T > | center () const |
| Returns the center of distortion. More... | |
| vgl_point_2d< T > | distorted_center () const |
| Returns the center of distortion in the distorted image. More... | |
| void | set_center (const vgl_point_2d< T > &c) |
| Set the center of distortion. More... | |
| void | set_distorted_center (const vgl_point_2d< T > &dc) |
| Set the center of distortion in the distorted image. More... | |
Protected Attributes | |
| vgl_point_2d< T > | center_ |
| The center of distortion. More... | |
| vgl_point_2d< T > | distorted_center_ |
| The center of distortion in the distorted space. More... | |
| bool | has_derivative_ |
A base class for radial lens distortions.
Definition at line 22 of file vpgl_radial_distortion.h.
|
inline |
Constructor.
Definition at line 26 of file vpgl_radial_distortion.h.
|
inline |
Constructor.
Definition at line 30 of file vpgl_radial_distortion.h.
|
inline |
Returns the center of distortion.
Definition at line 79 of file vpgl_radial_distortion.h.
|
overridevirtual |
Distort a projected point on the image plane.
Calls the pure virtual radial distortion function
Implements vpgl_lens_distortion< T >.
Definition at line 21 of file vpgl_radial_distortion.hxx.
|
pure virtual |
Distort a radial length.
| a | scale factor such that |
Implemented in vpgl_poly_radial_distortion< T, n >.
|
inlinevirtual |
Compute the derivative of the distort_radius function.
has_derivative_ to true if you define this function Reimplemented in vpgl_poly_radial_distortion< T, n >.
Definition at line 61 of file vpgl_radial_distortion.h.
|
inline |
Returns the center of distortion in the distorted image.
Definition at line 81 of file vpgl_radial_distortion.h.
|
inline |
Set the center of distortion.
Definition at line 84 of file vpgl_radial_distortion.h.
|
inline |
Set the center of distortion in the distorted image.
Definition at line 86 of file vpgl_radial_distortion.h.
|
inlineoverridevirtual |
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
Implements vpgl_lens_distortion< T >.
Definition at line 70 of file vpgl_radial_distortion.h.
|
overridevirtual |
Return the original point that was distorted to this location (inverse of distort).
| init | is an initial guess at the solution for the iterative solver if init is NULL then point is used as the initial guess calls the radial undistortion function |
Reimplemented from vpgl_lens_distortion< T >.
Definition at line 35 of file vpgl_radial_distortion.hxx.
|
virtual |
Return the inverse of distort function.
Return the inverse of the distort function.
| init | is an initial guess at the solution for the iterative solver if init is NULL then radius is used as the initial guess |
Definition at line 53 of file vpgl_radial_distortion.hxx.
|
protected |
The center of distortion.
Definition at line 90 of file vpgl_radial_distortion.h.
|
protected |
The center of distortion in the distorted space.
Definition at line 93 of file vpgl_radial_distortion.h.
|
protected |
Definition at line 95 of file vpgl_radial_distortion.h.
1.8.15