17 #ifndef LENS_DISTORTION_MODEL_H
18 #define LENS_DISTORTION_MODEL_H
21 #include "../ami_primitives/point2d.h"
24 #include "wxAmiDebugLog.h"
39 std::vector<double> d ;
52 std::vector<double> &
get_d(){
return d;}
59 const std::vector<double> &get_d()
const {
return d;}
66 void set_d(
const std::vector<double> &d_2){d=d_2;}
67 void set_d(std::vector<double> &d_2){d=d_2;}
140 std::vector<point2d<double> > evaluation(
const std::vector<
point2d<double> > & ptl)
const{
141 std::vector<point2d<double> > res;
142 for(
int i=0;i<((int)ptl.size());i++)
144 res.push_back(evaluation(ptl[i]));
154 int read(
char name[300]);
161 int write(
char name[300]);
169 void reset(){d.clear(); c.x=0; c.y=0; }
void reset()
Reset to initial state.
Definition: lens_distortion_model.h:169
point2d< double > & get_distortion_center()
This function returns the center of the lens distortion model.
Definition: lens_distortion_model.h:82
Class to store distortion model and basic methods.
Definition: lens_distortion_model.h:38
void set_d(const std::vector< double > &d_2)
Method for setting the lens distortion model parameters.
Definition: lens_distortion_model.h:66
void set_distortion_center(const point2d< double > &c2)
Method for setting the center of the lens distortion model.
Definition: lens_distortion_model.h:74
std::vector< double > & get_d()
This function returns the vector with the lens distortion model parameters.
Definition: lens_distortion_model.h:52