aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-03-31 16:27:13 +0200
committerThomas White <taw@physics.org>2017-03-31 16:30:13 +0200
commit3746b4dbed15569764ec6de473806468951748b8 (patch)
tree6539282693783345105809166fa58fc9b25cb943 /src/process_image.h
parent10fd97e6f88bd4d28ffc2bff56aa5ff19ca436ae (diff)
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.
Diffstat (limited to 'src/process_image.h')
-rw-r--r--src/process_image.h1
1 files changed, 1 insertions, 0 deletions
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;