14 double calibration_lut[10][1024];
20 for (
int i = 0; i < 10; i++)
22 for (
int y = 0; y < 1024; y++)
24 calibration_lut[i][y] = c[
"vars"][
"lut"][i][y];
26 for (
auto &h : p->images)
30 double compute(
int channel,
int pos_x,
int pos_y, uint32_t px_val)
32 if (px_val == 0 || px_val > 1023)
33 return CALIBRATION_INVALID_VALUE;
35 double physical_units = calibration_lut[channel][px_val];
38 physical_units = temperature_to_radiance(physical_units, wavenm[channel]);
40 return physical_units;