aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-14 19:30:57 +0200
committerThomas White <taw@physics.org>2010-04-14 19:30:57 +0200
commit7ac0868f912364458f80665e78721bdebf9d8f87 (patch)
tree2de8a4f9f61f7443fb1df1702f47435f1bb90969 /src
parent7677d79ffc64e384549b436d20fbb01d0e5dfcea (diff)
When simulating, don't round values when noise is not requested
Diffstat (limited to 'src')
-rw-r--r--src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index e8eade98..78fb216f 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -113,7 +113,7 @@ void record_image(struct image *image, int do_poisson)
counts = poisson_noise(intensity * ph_per_e * sa * DQE);
} else {
cf = intensity * ph_per_e * sa * DQE;
- counts = rint(cf);
+ counts = cf;
}
image->data[x + image->width*y] = counts * DETECTOR_GAIN;