40 MocWideAngleDistortionMap::MocWideAngleDistortionMap(
Camera *parent,
bool red) :
44 p_coefs.push_back(0.9993258);
45 p_coefs.push_back(0.4655529);
46 p_coefs.push_back(-0.1548756);
47 p_coefs.push_back(1.827967);
48 p_coefs.push_back(-3.057435);
49 p_coefs.push_back(2.226331);
51 p_icoefs.push_back(0.9995458);
52 p_icoefs.push_back(-0.4237090);
53 p_icoefs.push_back(0.2810857);
54 p_icoefs.push_back(-0.1697522);
55 p_icoefs.push_back(0.068131536);
56 p_icoefs.push_back(-0.012665644);
59 p_coefs.push_back(1.000246);
60 p_coefs.push_back(0.4612695);
61 p_coefs.push_back(0.2352545);
62 p_coefs.push_back(0.3535922);
63 p_coefs.push_back(-0.2853861);
64 p_coefs.push_back(0.5574971);
66 p_icoefs.push_back(0.9994557);
67 p_icoefs.push_back(-0.4515307);
68 p_icoefs.push_back(0.3152195);
69 p_icoefs.push_back(-0.1993053);
70 p_icoefs.push_back(0.081707217);
71 p_icoefs.push_back(-0.014814299);
82 double sdy = dy / p_scale;
85 double s2 = dx * dx + sdy * sdy;
95 double ang2 = ang * ang;
96 double angp = p_coefs[p_numCoefs-1];
97 for(
int i = p_numCoefs - 2; i >= 0; i--) {
98 angp = angp * ang2 + p_coefs[i];
113 double sp2 = ux * ux + uy * uy;
121 double sp = sqrt(sp2);
123 double angp2 = angp * angp;
124 double ang = p_icoefs[p_numCoefs-1];
125 for(
int i = p_numCoefs - 2; i >= 0; i--) {
126 ang = ang * angp2 + p_icoefs[i];
double p_focalPlaneX
Distorted focal plane x.
Namespace for the standard library.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
double p_undistortedFocalPlaneX
Undistorted focal plane x.
Camera * p_camera
The camera to distort/undistort.
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y.
double FocalLength() const
Returns the focal length.
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y.
Distort/undistort focal plane coordinates.
const double E
Sets some basic constants for use in ISIS programming.
double p_focalPlaneY
Distorted focal plane y.
double p_undistortedFocalPlaneY
Undistorted focal plane y.
Namespace for ISIS/Bullet specific routines.