From 0bbc70197664b47dc4d3c43c6103d466561b1798 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 26 Nov 2009 19:05:16 +0100 Subject: Fix Poisson noise --- src/detector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/detector.c') 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; -- cgit v1.2.3