aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-08 14:36:45 +0100
committerThomas White <taw@physics.org>2010-02-08 14:36:45 +0100
commit48fa0eb07746e844b94374eaba6db549e33fc8c9 (patch)
tree0979d952dc30b448a1d083bd015988f1f6923970 /src/detector.c
parent70117260442534672d61abfcffda876fa34925f5 (diff)
Add bandwidth calculation
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index ae7576b2..1bcddef1 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -181,8 +181,12 @@ void record_image(struct image *image, int do_water, int do_poisson,
if ( do_water ) {
+ struct rvec q;
+
+ q = get_q(image, x, y, 1, NULL, 1.0/image->lambda);
+
/* Add intensity contribution from water */
- water = water_intensity(get_q(image, x, y, 1, NULL),
+ water = water_intensity(q,
ph_lambda_to_en(image->lambda),
BEAM_RADIUS, WATER_RADIUS);
intensity += water;