12#include "LroNarrowAngleDistortionMap.h" 
   34    QString odkkey = 
"INS" + 
toString(naifIkCode) + 
"_OD_K";
 
 
   54    double dk1 = 
p_odk[0];
 
   56    double den = 1 + dk1 * dy * dy;                 
 
 
   85    double yprevious = 1000000.0;
 
   86    double tolerance = 1.0e-10;
 
   88    bool bConverged = 
false;
 
   90    double dk1 = 
p_odk[0];
 
  106    for(
int i = 0; i < 50; i++) {
 
  122      if(fabs(yt - yprevious) <= tolerance) {
 
 
Distort/undistort focal plane coordinates.
 
double p_focalPlaneX
Distorted focal plane x.
 
double p_undistortedFocalPlaneX
Undistorted focal plane x.
 
std::vector< double > p_odk
Vector of distortion coefficients.
 
double p_undistortedFocalPlaneY
Undistorted focal plane y.
 
Camera * p_camera
The camera to distort/undistort.
 
double p_focalPlaneY
Distorted focal plane y.
 
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y.
 
void SetDistortion(const int naifIkCode)
 
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.
 
This is free and unencumbered software released into the public domain.
 
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.