75 QString odkkey =
"INS" +
toString(naifIkCode) +
"_OD_K";
76 for (
int i = 0; i < 3; ++i) {
104 if (
p_odk.size() <= 0) {
112 double r2 = (dx * dx) + (dy * dy);
152 if (
p_odk.size() <= 0) {
160 double rp2 = (ux * ux) + (uy * uy);
169 double rp = sqrt(rp2);
173 double r = rp + (drOverR * rp);
174 double r_prev, r2_prev;
183 if (iteration >= 15 || r > 1E9) {
194 r = rp + (drOverR * r_prev);
197 while (fabs(r - r_prev) > tolMilliMeters);
double p_focalPlaneX
Distorted focal plane x.
double UndistortedFocalPlaneZ() const
Gets the z-value in the undistorted focal plane coordinate system.
double ZDirection() const
Gets the z-direction for this camera.
CameraDistortionMap(Camera *parent, double zDirection=1.0)
Camera distortion map constructor.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
virtual void SetDistortion(int naifIkCode)
Load distortion coefficients.
std::vector< double > OpticalDistortionCoefficients() const
Retrieve the distortion coefficients used for this model.
double p_undistortedFocalPlaneX
Undistorted focal plane x.
Camera * p_camera
The camera to distort/undistort.
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
virtual bool SetFocalPlane(double dx, double dy)
Compute undistorted focal plane x/y.
double FocalLength() const
Returns the focal length.
double PixelPitch() const
Returns the pixel pitch.
const double E
Sets some basic constants for use in ISIS programming.
virtual ~CameraDistortionMap()
Destructor for the ISIS3 default camera distortion map.
double p_focalPlaneY
Distorted focal plane y.
double p_undistortedFocalPlaneY
Undistorted focal plane y.
void SetDistortionMap(CameraDistortionMap *map, bool deleteExisting=true)
Sets the Distortion Map.
double p_zDirection
Undistorted focal plane z.
Namespace for ISIS/Bullet specific routines.
std::vector< double > p_odk
Vector of distortion coefficients.
double UndistortedFocalPlaneY() const
Gets the y-value in the undistorted focal plane coordinate system.
double UndistortedFocalPlaneX() const
Gets the x-value in the undistorted focal plane coordinate system.
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.