From 8a2f534166d35c72f78d7567f2a2f519213fa77c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 26 Jun 2013 18:13:33 -0700 Subject: Track number of rejected saturated peaks --- libcrystfel/src/peaks.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcrystfel') 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 */ -- cgit v1.2.3