From 3746b4dbed15569764ec6de473806468951748b8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 31 Mar 2017 16:27:13 +0200 Subject: Offset peak locations from HDF5 or CXI files by 0.5,0.5 CrystFEL considers all peak locations to be distances from the corner of the detector panel, in pixel units, consistent with its description of detector geometry. In contrast, Cheetah considers the peak locations to be pixel indices in the data array. Therefore, a half-pixel offset is needed when importing the peak lists. For users who need the old behaviour, this commit adds a new option indexamajig --no-half-pixel-shift to deactivate this offset. --- src/process_image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/process_image.h') diff --git a/src/process_image.h b/src/process_image.h index bc8b31fd..d63679cf 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -67,6 +67,7 @@ struct index_args float tols[4]; struct beam_params *beam; char *hdf5_peak_path; + int half_pixel_shift; float pk_inn; float pk_mid; float pk_out; -- cgit v1.2.3