diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2014-07-23 13:26:30 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-07-24 13:26:34 +0200 |
commit | 7141d24cce2edfcafae40dce6213c108798e9dc5 (patch) | |
tree | 9c8643fa25762c21f4c4a43651282dd45c8d1984 /libcrystfel/src/peaks.c | |
parent | 282dee197bce06f9d37655c1775f53f6646e2e5d (diff) |
Fixes closest feature detection bug
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r-- | libcrystfel/src/peaks.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |