|
Isis 3 Programmer Reference
|
8 #include "CameraDistortionMap.h"
59 QString odkkey =
"INS" +
toString(naifIkCode) +
"_OD_K";
60 for (
int i = 0; i < 3; ++i) {
88 if (
p_odk.size() <= 0) {
96 double r2 = (dx * dx) + (dy * dy);
136 if (
p_odk.size() <= 0) {
144 double rp2 = (ux * ux) + (uy * uy);
153 double rp = sqrt(rp2);
157 double r = rp + (drOverR * rp);
158 double r_prev, r2_prev;
167 if (iteration >= 15 || r > 1E9) {
178 r = rp + (drOverR * r_prev);
181 while (fabs(r - r_prev) > tolMilliMeters);
virtual void SetDistortion(int naifIkCode)
Load distortion coefficients.
double p_focalPlaneX
Distorted focal plane x.
std::vector< double > OpticalDistortionCoefficients() const
Retrieve the distortion coefficients used for this model.
double UndistortedFocalPlaneX() const
Gets the x-value in the undistorted focal plane coordinate system.
double p_undistortedFocalPlaneY
Undistorted focal plane y.
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
double p_undistortedFocalPlaneX
Undistorted focal plane x.
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
double UndistortedFocalPlaneZ() const
Gets the z-value in the undistorted focal plane coordinate system.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
CameraDistortionMap(Camera *parent, double zDirection=1.0)
Camera distortion map constructor.
Camera * p_camera
The camera to distort/undistort.
virtual ~CameraDistortionMap()
Destructor for the ISIS default camera distortion map.
double ZDirection() const
Gets the z-direction for this camera.
double FocalLength() const
Returns the focal length.
double PixelPitch() const
Returns the pixel pitch.
virtual bool SetFocalPlane(double dx, double dy)
Compute undistorted focal plane x/y.
const double E
Sets some basic constants for use in ISIS programming.
std::vector< double > p_odk
Vector of distortion coefficients.
double UndistortedFocalPlaneY() const
Gets the y-value in the undistorted focal plane coordinate system.
double p_focalPlaneY
Distorted focal plane y.
This is free and unencumbered software released into the public domain.
double p_zDirection
Undistorted focal plane z.
void SetDistortionMap(CameraDistortionMap *map, bool deleteExisting=true)
Sets the Distortion Map.