45 QString odkkey =
"INS" +
toString(naifIkCode) +
"_OD_K";
47 p_odk.push_back(p_camera->
getDouble(odkkey, 0));
65 double dk1 = p_odk[0];
67 double den = 1 + dk1 * dy * dy;
71 p_undistortedFocalPlaneX = dx;
72 p_undistortedFocalPlaneY = dy / den;
89 p_undistortedFocalPlaneX = ux;
90 p_undistortedFocalPlaneY = uy;
96 double yprevious = 1000000.0;
97 double tolerance = 1.0e-10;
99 bool bConverged =
false;
101 double dk1 = p_odk[0];
109 p_focalPlaneX = p_undistortedFocalPlaneX;
110 p_focalPlaneY = 100.0;
117 for(
int i = 0; i < 50; i++) {
133 if(fabs(yt - yprevious) <= tolerance) {
142 p_focalPlaneX = p_undistortedFocalPlaneX;
143 p_focalPlaneY = ydistorted;
void SetDistortion(const int naifIkCode)
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y.
Distort/undistort focal plane coordinates.
LroNarrowAngleDistortionMap(Camera *parent)
Camera distortion map constructor.
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y.
SpiceDouble getDouble(const QString &key, int index=0)
This returns a value from the NAIF text pool.