ldpk
|
A polynomial model with N coefficients for radially symmetric lenses. This class contains the model for normalized coordinates with diagonal radius = 1. Lens center is at (0,0). More...
#include <ldpk_generic_radial_distortion_1d.h>
Public Member Functions | |
double | get_coeff (int i) const |
Get coefficient c[i], 0 <= i < N (i.e. coefficient power r^(2i)) | |
void | set_coeff (int i, double q) |
Set coefficient c[i], 0 <= i < N. | |
void | reset_k_max_iter () |
Reset k_max_iter for debugging purposes. | |
int | get_k_iter () const |
Number of iterations until epsilon was reached. This value is reset at the beginning of each iterative calculation. | |
int | get_k_max_iter () const |
By this value you can check how much iterations per pixel were required to warp an entire image or sequence. Use reset_k_max_iter() to reset to 0. | |
int | get_n_max_iter () const |
User-defined maximum number of iterations applied in map_inverse in order to fulfill the termination condition. | |
int | get_n_post_iter () const |
User-defined number of additional iterations to be applied when the termination condition is fulfilled (which we call post-iterations). | |
double | operator() (double r_dn) const |
Remove distortion. r_dn is a point (distance from center) in diagonally normalized coordinates. | |
double | map_inverse (double q) const |
Inverse mapping by solving the fixed point equation without providing initial values. | |
double | map_inverse (double q, double p_start) const |
We expect that usually p_start=q is sufficient as starting value, since coefficients are low. | |
double | jacobi (double r_dn) const |
Jacobian. For the pure radial polynomial it's simply the derivative. | |
std::ostream & | out (std::ostream &cout) const |
A polynomial model with N coefficients for radially symmetric lenses. This class contains the model for normalized coordinates with diagonal radius = 1. Lens center is at (0,0).