10 #include "ThemisIrDistortionMap.h"
18 ThemisIrDistortionMap::ThemisIrDistortionMap(
Camera *parent) :
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;