From 7141d24cce2edfcafae40dce6213c108798e9dc5 Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Wed, 23 Jul 2014 13:26:30 +0200 Subject: Fixes closest feature detection bug --- libcrystfel/src/peaks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src/peaks.c') diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 47bec10c..a38e4d4d 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -526,7 +526,8 @@ static void search_peaks_in_panel(struct image *image, float threshold, } /* Check for a nearby feature */ - image_feature_closest(image->features, f_fs, f_ss, &d, &idx); + image_feature_closest(image->features, f_fs, f_ss, &d, &idx, + image->det); if ( d < 2.0*ir_inn ) { nrej_pro++; continue; @@ -727,7 +728,7 @@ void validate_peaks(struct image *image, double min_snr, } /* Check for a nearby feature */ - image_feature_closest(flist, f_fs, f_ss, &d, &idx); + image_feature_closest(flist, f_fs, f_ss, &d, &idx, image->det); if ( d < 2.0*ir_inn ) { n_prx++; continue; -- cgit v1.2.3