aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-26 19:05:16 +0100
committerThomas White <taw@physics.org>2009-11-26 19:05:16 +0100
commit0bbc70197664b47dc4d3c43c6103d466561b1798 (patch)
tree9f8feb97df9869e8e63b2dbfad0cfac474f21adb
parenta1c64874aaf7a20929bfd7694d6cbc3efdf3c8e4 (diff)
Fix Poisson noise
-rw-r--r--src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index a55d6fcc..23378e90 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -194,7 +194,7 @@ void record_image(struct image *image)
counts = intensity * ph_per_e * sa;
//printf("%e counts\n", counts);
- counts += poisson_noise(counts);
+ counts = poisson_noise(counts);
image->hdr[x + image->width*y] = counts;