38 LoHighDistortionMap::LoHighDistortionMap(
Camera *parent) :
98 QString perskey =
"INS" +
toString(naifIkCode) +
"_PERSPECTIVE_FACTORS";
99 QString centkey =
"INS" +
toString(naifIkCode) +
"_POINT_OF_SYMMETRY";
102 p_x0 = p_camera->Spice::getDouble(centkey, 0);
103 p_y0 = p_camera->Spice::getDouble(centkey, 1);
131 double pcx = dx * perspectiveFactor;
132 double pcy = dy * perspectiveFactor;
136 double distx = pcx -
p_x0;
137 double disty = pcy -
p_y0;
141 double r2 = distx * distx + disty * disty;
143 p_undistortedFocalPlaneX = pcx;
144 p_undistortedFocalPlaneY = pcy;
149 double drOverR = p_odk[0] + p_odk[1] * r2;
150 p_undistortedFocalPlaneX = pcx - (drOverR * distx);
151 p_undistortedFocalPlaneY = pcy - (drOverR * disty);
177 p_undistortedFocalPlaneX = ux;
178 p_undistortedFocalPlaneY = uy;
182 double distux = p_undistortedFocalPlaneX -
p_x0;
183 double distuy = p_undistortedFocalPlaneY -
p_y0;
187 double rp2 = distux * distux + distuy * distuy;
194 double drOverR = p_odk[0] + rp2 * p_odk[1];
197 pcx = p_undistortedFocalPlaneX + (distux * drOverR);
198 pcy = p_undistortedFocalPlaneY + (distuy * drOverR);
201 pcx = p_undistortedFocalPlaneX;
202 pcy = p_undistortedFocalPlaneY;
207 p_focalPlaneX = pcx * perspectiveCorrection;
208 p_focalPlaneY = pcy * perspectiveCorrection;