From f98c55524c74647ac999746929b8206f1ab178c0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 14 Nov 2014 15:45:47 +0100 Subject: Background need not be an integer --- libcrystfel/src/detector.c | 2 +- libcrystfel/src/detector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index f220d755..a7da92bb 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -322,7 +322,7 @@ double get_tt(struct image *image, double fs, double ss, int *err) } -void record_image(struct image *image, int do_poisson, int background, +void record_image(struct image *image, int do_poisson, double background, gsl_rng *rng, double beam_radius, double nphotons) { int x, y; diff --git a/libcrystfel/src/detector.h b/libcrystfel/src/detector.h index 9db695d9..9ad90e05 100644 --- a/libcrystfel/src/detector.h +++ b/libcrystfel/src/detector.h @@ -185,7 +185,7 @@ extern double get_tt(struct image *image, double xs, double ys, int *err); extern int in_bad_region(struct detector *det, double fs, double ss); -extern void record_image(struct image *image, int do_poisson, int background, +extern void record_image(struct image *image, int do_poisson, double background, gsl_rng *rng, double beam_radius, double nphotons); extern struct panel *find_panel(struct detector *det, double fs, double ss); -- cgit v1.2.3