A class for nth order polynomial radial lens distortion. More...
#include <vpgl_poly_radial_distortion.h>

Public Member Functions | |
| vpgl_poly_radial_distortion (const vgl_point_2d< T > ¢er, const T *k) | |
| Constructor. More... | |
| vpgl_poly_radial_distortion (const vgl_point_2d< T > ¢er, const vgl_point_2d< T > &distorted_center, const T *k) | |
| Constructor. More... | |
| vpgl_poly_radial_distortion (const vgl_point_2d< T > ¢er, const std::vector< T > &k) | |
| Constructor. More... | |
| vpgl_poly_radial_distortion (const vgl_point_2d< T > ¢er, const vgl_point_2d< T > &distorted_center, const std::vector< T > &k) | |
| Constructor. More... | |
| void | set_coefficients (const std::vector< T > &k) |
| void | set_coefficients (const T *k) |
| T | coefficient (unsigned int i) const |
| Read-only coefficient accessor. More... | |
| T & | coefficient (unsigned int i) |
| Read-write coefficient accessor. More... | |
| T | distort_radius (T radius) const override |
| Distort a radial length. More... | |
| T | distort_radius_deriv (T radius) const override |
| Compute the derivative of the distort_radius function. 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 | undistort_radius (T radius, const T *init=nullptr) const |
| Return the inverse of distort 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 | |
| T | coefficients_ [n] |
| The coefficients of the nth-order polynomial. More... | |
| 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 class for nth order polynomial radial lens distortion.
Definition at line 25 of file vpgl_poly_radial_distortion.h.
|
inline |
Constructor.
Definition at line 29 of file vpgl_poly_radial_distortion.h.
|
inline |
Constructor.
Definition at line 36 of file vpgl_poly_radial_distortion.h.
|
inline |
Constructor.
Definition at line 45 of file vpgl_poly_radial_distortion.h.
|
inline |
Constructor.
Definition at line 53 of file vpgl_poly_radial_distortion.h.
|
inlineinherited |
Returns the center of distortion.
Definition at line 79 of file vpgl_radial_distortion.h.
|
inline |
Read-only coefficient accessor.
Definition at line 79 of file vpgl_poly_radial_distortion.h.
|
inline |
Read-write coefficient accessor.
Definition at line 86 of file vpgl_poly_radial_distortion.h.
|
overridevirtualinherited |
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.
|
overridevirtual |
Distort a radial length.
Implements vpgl_radial_distortion< T >.
Definition at line 34 of file vpgl_poly_radial_distortion.hxx.
|
overridevirtual |
Compute the derivative of the distort_radius function.
Reimplemented from vpgl_radial_distortion< T >.
Definition at line 63 of file vpgl_poly_radial_distortion.hxx.
|
inlineinherited |
Returns the center of distortion in the distorted image.
Definition at line 81 of file vpgl_radial_distortion.h.
|
inlineinherited |
Set the center of distortion.
Definition at line 84 of file vpgl_radial_distortion.h.
|
inline |
Definition at line 61 of file vpgl_poly_radial_distortion.h.
|
inline |
Definition at line 69 of file vpgl_poly_radial_distortion.h.
|
inlineinherited |
Set the center of distortion in the distorted image.
Definition at line 86 of file vpgl_radial_distortion.h.
|
inlineoverridevirtualinherited |
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.
|
overridevirtualinherited |
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.
|
virtualinherited |
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.
|
protectedinherited |
The center of distortion.
Definition at line 90 of file vpgl_radial_distortion.h.
|
protected |
The coefficients of the nth-order polynomial.
Definition at line 100 of file vpgl_poly_radial_distortion.h.
|
protectedinherited |
The center of distortion in the distorted space.
Definition at line 93 of file vpgl_radial_distortion.h.
|
protectedinherited |
Definition at line 95 of file vpgl_radial_distortion.h.
1.8.15