mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-19 22:08:41 +01:00
zero out switching pixels if 2D calibration is used
This commit is contained in:
@@ -92,11 +92,12 @@ void apply_calibration_impl(NDView<T, 3> res, NDView<uint16_t, 3> raw_data,
|
|||||||
// ADU/keV is the standard unit for the calibration which
|
// ADU/keV is the standard unit for the calibration which
|
||||||
// means rewriting the formula is not worth it.
|
// means rewriting the formula is not worth it.
|
||||||
|
|
||||||
// ignore anything that is not gain 0
|
// Set the value to 0 if the gain is not 0
|
||||||
// TODO! deal with fixed gain?
|
|
||||||
if (gain == 0)
|
if (gain == 0)
|
||||||
res(frame_nr, row, col) =
|
res(frame_nr, row, col) =
|
||||||
(value - ped(row, col)) / cal(row, col);
|
(value - ped(row, col)) / cal(row, col);
|
||||||
|
else
|
||||||
|
res(frame_nr, row, col) = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user