From 4227f0b190b08ecc50a49875e86dbb9b14714bdd Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 13 Apr 2017 16:09:58 +0200 Subject: Add half-pixel offset for peakfinder8 Like zaef, the pixel indices need to be converted to geometrical coordinates. This increases the indexing rate by about 5% in my test. --- libcrystfel/src/peakfinder8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c index f6e70223..76d7c13c 100644 --- a/libcrystfel/src/peakfinder8.c +++ b/libcrystfel/src/peakfinder8.c @@ -1215,8 +1215,8 @@ int peakfinder8(struct image *img, int max_n_peaks, } image_add_feature(img->features, - pkdata->com_fs[pki], - pkdata->com_ss[pki], + pkdata->com_fs[pki]+0.5, + pkdata->com_ss[pki]+0.5, p, img, pkdata->tot_i[pki], -- cgit v1.2.3