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;
const double E(2.7182818284590452354)
Sets some basic constants for use in ISIS programming.
void SetDistortion(const int naifIkCode)
Load LO High Resolution Camera perspective & distortion coefficients.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
void SetDistortion(int naifIkCode)
Load distortion coefficients.
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y for Lo High Resolution Camera.
double p_y0
Center of distortion on y axis.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
double p_yPerspective
Perspective correction factor in y.
Distort/undistort focal plane coordinates.
double p_x0
Center of distortion on x axis.
double p_xPerspective
Perspective correction factor in x.
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y for Lo High Resolution Camera.