aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-26 17:53:44 +0100
committerThomas White <taw@physics.org>2010-02-26 17:53:44 +0100
commita34f668051317f475c64c7aad6143dda76325fd1 (patch)
tree595a36e4395402f5b8a7d1333e81a7ebae45c199 /src/detector.c
parentc8d022b01819c81489a9d06fe05aaccb7d057a68 (diff)
Separate DQE and detector gain (to make Poisson noise work)
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index 7a7f5942..2a4c6d10 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -108,7 +108,7 @@ void record_image(struct image *image, int do_poisson)
counts = (int)rounded;
}
- image->data[x + image->width*y] = counts;
+ image->data[x + image->width*y] = counts * DETECTOR_GAIN;
}
progress_bar(x, image->width-1, "Post-processing");