aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-04 10:48:43 +0100
committerThomas White <taw@physics.org>2009-12-04 10:48:43 +0100
commit6a378dfb14c8f3d539e93b01c8c5dda77350070a (patch)
tree10b3c1663d458b9c784595b69976ab01a0f4455f /src/detector.c
parent903d944cb22d818096e8bba23274a18902396e4c (diff)
Add --no-bloom option
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/detector.c b/src/detector.c
index de1efc2b..5b12b007 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -142,14 +142,14 @@ static uint16_t *bloom(int *hdr_in, int width, int height)
}
-void record_image(struct image *image, int do_water, int do_poisson)
+void record_image(struct image *image, int do_water, int do_poisson,
+ int do_bloom)
{
int x, y;
double total_energy, energy_density;
double ph_per_e;
double pix_area, Lsq;
double area;
- const int do_bloom = 1;
/* How many photons are scattered per electron? */
area = M_PI*pow(BEAM_RADIUS, 2.0);
@@ -209,7 +209,7 @@ void record_image(struct image *image, int do_water, int do_poisson)
image->hdr[x + image->width*y] = counts;
}
- progress_bar(x, image->width-1, "Adding water and noise");
+ progress_bar(x, image->width-1, "Post-processing");
}
if ( do_bloom ) {