Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-slsdetector
Commits
f9b7b38c
Commit
f9b7b38c
authored
May 17, 2021
by
Alejandro Homs Puron
Browse files
Jungfrau: GainADCMapImgProc: xform gain 3 into 2
parent
aaac7581
Changes
1
Show whitespace changes
Inline
Side-by-side
src/SlsDetectorJungfrau.cpp
View file @
f9b7b38c
...
...
@@ -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
;
}
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment