aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-04-13 16:09:58 +0200
committerThomas White <taw@physics.org>2017-04-13 16:09:58 +0200
commit4227f0b190b08ecc50a49875e86dbb9b14714bdd (patch)
tree87d4d405fc6fee9766911088a6e99a7a11169b76
parentadaff63c98ce5a0e138999a5ee8410c9404f6c29 (diff)
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.
-rw-r--r--libcrystfel/src/peakfinder8.c4
1 files changed, 2 insertions, 2 deletions
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],