10 #include "ThemisVisDistortionMap.h"
25 ThemisVisDistortionMap::ThemisVisDistortionMap(
Camera *parent) :
46 ThemisVisDistortionMap::~ThemisVisDistortionMap() {
123 double vis_od_cx[] = { -4.02919e-5, 0.0, 0.0 };
124 double vis_od_cy[] = { -0.0178649, -0.00727843, 5.65278e-5 };
134 double deltaj = vis_od_cy[0] + ( vis_od_cy[1] * (-j)) + ( vis_od_cy[2] * (-j) * (-j));
163 double vis_od_cx[] = { -4.02919e-5, 0.0, 0.0 };
164 double vis_od_cy[] = { -0.0178649, -0.00727843, 5.65278e-5 };
176 double dx_guess, dy_guess;
177 double ux_guess, uy_guess;
203 ux_guess = dx / (1.0 + xOffset);
204 uy_guess = dy / (1.0 + yOffset);
215 dx_guess = ux_guess * (1.0 + xOffset);
216 dy_guess = uy_guess * (1.0 + yOffset);
220 if ((abs(dy_guess - dy) < delta) && (abs(dx_guess - dx) < delta)) {
226 if (numAttempts > 20) {