Commit f9b7b38c authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

Jungfrau: GainADCMapImgProc: xform gain 3 into 2

parent aaac7581
......@@ -345,8 +345,10 @@ void Jungfrau::GainADCMapImgProc::processFrame(Data& data)
{
src = (unsigned short *) raw.data();
unsigned char *dst = (unsigned char *) m.gain_map.data();
for (int i = 0; i < m_pixels; ++i, ++src, ++dst)
*dst = *src >> 14;
for (int i = 0; i < m_pixels; ++i, ++src, ++dst) {
int gain = *src >> 14;
*dst = (gain == 3) ? 2 : gain;
}
m.gain_map.frameNumber = frame;
}
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment