aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-06-26 18:13:33 -0700
committerThomas White <taw@physics.org>2013-06-26 18:13:33 -0700
commit8a2f534166d35c72f78d7567f2a2f519213fa77c (patch)
treec0ab1bccaefd8880a7af2ad9b50e2ed18257696a /libcrystfel/src
parent2ebb48c1be2ec749f61422919b59838710c999c7 (diff)
Track number of rejected saturated peaks
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/peaks.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 05c564ba..90ab8385 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -412,6 +412,7 @@ static void search_peaks_in_panel(struct image *image, float threshold,
int nrej_fra = 0;
int nrej_fail = 0;
int nrej_snr = 0;
+ int nrej_sat = 0;
int nacc = 0;
int ncull;
@@ -506,7 +507,10 @@ static void search_peaks_in_panel(struct image *image, float threshold,
if ( saturated ) {
image->num_saturated_peaks++;
- if ( !use_saturated ) continue;
+ if ( !use_saturated ) {
+ nrej_sat++;
+ continue;
+ }
}
/* It is possible for the centroid to fall outside the image */