aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-05-21 16:04:05 +0200
committerThomas White <taw@physics.org>2012-05-21 16:04:05 +0200
commit3bc13230355c2be24549e09663295f3cdaee74dc (patch)
treed22eaeb9961da148e84f2d780f667fab96f093dc /libcrystfel/src/peaks.c
parent146e47c3180cca8f574a861d760e944261ad81ac (diff)
ADU threshold is on pixel value, not photon-bg subtracted version
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 91a8c949..477d9345 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -263,7 +263,7 @@ static int integrate_peak(struct image *image, int cfs, int css,
val = image->data[idx] - bg_mean;
/* Veto peak if it contains saturation */
- if ( val > p->max_adu ) return 1;
+ if ( image->data[idx] > p->max_adu ) return 1;
pk_counts++;
pk_total += val;