Lens distortion correction division model 1p
 All Classes Files Functions Variables
ami::lens_distortion_model Class Reference

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

Detailed Description

Class to store distortion model and basic methods.

Author
Luis Alvarez

Member Function Documentation

point2d< double > ami::lens_distortion_model::evaluation ( point2d< double > &  p)

COMPUTE THE MODEL IN A POINT.

For a given point, this function computes the polynomial model in that point and returns its new position.

Parameters
p
Author
Luis Alvarez
Luis Alvarez
point2d< double > ami::lens_distortion_model::evaluation_quotient ( point2d< double > &  p)

For a given point, this function computes the division model in that point and returns its new position.

Author
Luis Alvarez
const std::vector< double > & ami::lens_distortion_model::get_d ( )
inline

This function returns the vector with the lens distortion model parameters.

DESTRUCTOR TO FREE MEMORY

Author
Luis Alvarez
Luis Alvarez
const point2d & ami::lens_distortion_model::get_distortion_center ( )
inline

This function returns the center of the lens distortion model.

Author
Luis Alvarez
point2d< double > ami::lens_distortion_model::inverse_evaluation ( point2d< double > &  p)

This method computes the inverse polynomial model in a point and returns its original position.

Author
Luis Alvarez
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.

Author
Luis Alvarez
point2d< double > ami::lens_distortion_model::inverse_evaluation_quotient ( point2d< double > &  p)

This method computes the inverse division model in a point and returns its original position.

Author
Luis Alvarez
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.

Author
Luis Alvarez
Parameters
nameINPUT FILE NAME
void ami::lens_distortion_model::reset ( )
inline

Reset to initial state.

Author
Pedro Henriquez
void ami::lens_distortion_model::set_d ( const std::vector< double > &  d2)
inline

Method for setting the lens distortion model parameters.

Author
Luis Alvarez
void ami::lens_distortion_model::set_distortion_center ( const point2d< double > &  c2)
inline

Method for setting the center of the lens distortion model.

SET DISTORTION MODEL CENTER

Author
Luis Alvarez
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.

Author
Luis Alvarez
Parameters
nameINPUT FILE NAME

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