![]() |
Lens distortion correction division model 1p
|
Class to store distortion model and basic methods. More...
#include <lens_distortion_model.h>
Public Member Functions | |
std::vector< double > & | get_d () |
This function returns the vector with the lens distortion model parameters. More... | |
const std::vector< double > & | get_d () const |
void | set_d (const std::vector< double > &d_2) |
Method for setting the lens distortion model parameters. More... | |
void | set_d (std::vector< double > &d_2) |
void | set_distortion_center (const point2d< double > &c2) |
Method for setting the center of the lens distortion model. More... | |
point2d< double > & | get_distortion_center () |
This function returns the center of the lens distortion model. More... | |
const point2d< double > & | get_distortion_center () const |
point2d< double > | evaluation_quotient (const point2d< double > &p) const |
point2d< double > | evaluation_quotient (point2d< double > &p) |
For a given point, this function computes the division model in that point and returns its new position. More... | |
point2d< double > | evaluation (const point2d< double > &p) const |
point2d< double > | evaluation (point2d< double > &p) |
COMPUTE THE MODEL IN A POINT. More... | |
point2d< double > | inverse_evaluation (const point2d< double > &p) const |
point2d< double > | inverse_evaluation (point2d< double > &p) |
This method computes the inverse polynomial model in a point and returns its original position. More... | |
point2d< double > | inverse_evaluation_quotient (const point2d< double > &p) const |
point2d< double > | inverse_evaluation_quotient (point2d< double > &p) |
This method computes the inverse division model in a point and returns its original position. More... | |
point2d< double > | inverse_evaluation_fast (point2d< double > &p, double dl1r, double *a, int Na) |
Accelerated version of the method that computes the inverse polynomial model and returns the original position of the point. More... | |
std::vector< point2d< double > > | evaluation (const std::vector< point2d< double > > &ptl) const |
int | read (char name[300]) |
Function to read from disk lens_distortion model information. More... | |
int | write (char name[300]) |
Function to write to disk lens_distortion model information. More... | |
void | reset () |
Reset to initial state. More... | |
Class to store distortion model and basic methods.
COMPUTE THE MODEL IN A POINT.
For a given point, this function computes the polynomial model in that point and returns its new position.
p |
For a given point, this function computes the division model in that point and returns its new position.
|
inline |
This function returns the vector with the lens distortion model parameters.
DESTRUCTOR TO FREE MEMORY
|
inline |
This function returns the center of the lens distortion model.
This method computes the inverse polynomial model in a point and returns its original position.
point2d< double > ami::lens_distortion_model::inverse_evaluation_fast | ( | point2d< double > & | p, |
double | dl1r, | ||
double * | a, | ||
int | Na | ||
) |
Accelerated version of the method that computes the inverse polynomial model and returns the original position of the point.
This method computes the inverse division model in a point and returns its original position.
int ami::lens_distortion_model::read | ( | char | name[300] | ) |
Function to read from disk lens_distortion model information.
This function reads the lens distortion model from a file.
name | INPUT FILE NAME |
|
inline |
Reset to initial state.
|
inline |
Method for setting the lens distortion model parameters.
|
inline |
Method for setting the center of the lens distortion model.
SET DISTORTION MODEL CENTER
ami::lens_distortion_model::write | ( | char | name[300] | ) |
Function to write to disk lens_distortion model information.
This function writes the lens distortion model to a file.
name | INPUT FILE NAME |