aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index a45a51af..1af901e0 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -485,12 +485,9 @@ static void search_peaks_in_panel(struct image *image, float threshold,
continue;
}
- if ( saturated ) {
- image->num_saturated_peaks++;
- if ( !use_saturated ) {
- nrej_sat++;
- continue;
- }
+ if ( saturated && !use_saturated ) {
+ nrej_sat++;
+ continue;
}
/* Add using "better" coordinates */
@@ -510,8 +507,6 @@ static void search_peaks_in_panel(struct image *image, float threshold,
ncull = 0;
}
- image->num_peaks += nacc;
-
//STATUS("%i accepted, %i box, %i proximity, %i outside panel, "
// "%i failed integration, %i with SNR < %g, %i badrow culled, "
// "%i saturated.\n",
@@ -536,8 +531,6 @@ void search_peaks(struct image *image, float threshold, float min_sq_gradient,
image_feature_list_free(image->features);
}
image->features = image_feature_list_new();
- image->num_peaks = 0;
- image->num_saturated_peaks = 0;
for ( i=0; i<image->det->n_panels; i++ ) {
@@ -577,8 +570,6 @@ int search_peaks_peakfinder8(struct image *image, int max_n_peaks,
image_feature_list_free(image->features);
}
image->features = image_feature_list_new();
- image->num_peaks = 0;
- image->num_saturated_peaks = 0;
return peakfinder8(image, max_n_peaks, threshold, min_snr,
min_pix_count, max_pix_count,
@@ -810,8 +801,6 @@ void validate_peaks(struct image *image, double min_snr,
// n, image_feature_count(flist), n_wtf, n_int, n_snr, n_sat);
image_feature_list_free(image->features);
image->features = flist;
- image->num_saturated_peaks = n_sat;
- image->num_peaks = image_feature_count(flist);
}