10#include "ThemisIrDistortionMap.h" 
   21    p_alpha1 = 0.00447623;  
 
   22    p_alpha2 = 0.00107556;  
 
 
   25  void ThemisIrDistortionMap::SetBand(
const int band) {
 
   26    if(band < 1 || band > 10) {
 
   27      string msg = 
"Band number out of array bounds in ThemisIRDistortionMap";
 
   30    double k[] = { 0.996005, 0.995358, 0.994260, 0.993290, 0.992389,
 
   31                   0.991474, 0.990505, 0.989611, 0.988653, 0.9877
 
   45    double radical = (1.0 + p_alpha1) * (1.0 + p_alpha1) + 4.0 * p_alpha2 * dy;
 
   46    if(radical < 0.0) 
return false;
 
   47    radical = sqrt(radical);
 
   48    double denom = 1.0 + p_alpha1 + radical;
 
   49    if(denom == 0.0) 
return false;
 
 
Distort/undistort focal plane coordinates.
 
double p_focalPlaneX
Distorted focal plane x.
 
double p_undistortedFocalPlaneX
Undistorted focal plane x.
 
double p_undistortedFocalPlaneY
Undistorted focal plane y.
 
double p_focalPlaneY
Distorted focal plane y.
 
@ Programmer
This error is for when a programmer made an API call that was illegal.
 
ThemisIrDistortionMap(Camera *parent)
 
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y.
 
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y.
 
This is free and unencumbered software released into the public domain.
 
Namespace for the standard library.