From 8287ae8cd30b5446c6269c8cf58b742a2e304a1f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 10 Sep 2019 15:29:22 +0200 Subject: indexamajig: Add --peaks=none --- src/indexamajig.c | 2 ++ src/process_image.c | 3 +++ src/process_image.h | 1 + 3 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/indexamajig.c b/src/indexamajig.c index efad3fb0..bd159a9a 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -989,6 +989,8 @@ int main(int argc, char *argv[]) iargs.peaks = PEAK_PEAKFINDER9; } else if ( strcmp(speaks, "msgpack") == 0 ) { iargs.peaks = PEAK_MSGPACK; + } else if ( strcmp(speaks, "none") == 0 ) { + iargs.peaks = PEAK_NONE; } else { ERROR("Unrecognised peak detection method '%s'\n", speaks); return 1; diff --git a/src/process_image.c b/src/process_image.c index e9e90e71..654ffd46 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -343,6 +343,9 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, iargs->half_pixel_shift); break; + case PEAK_NONE: + break; + } image.peak_resolution = estimate_peak_resolution(image.features, diff --git a/src/process_image.h b/src/process_image.h index f8b0f4b1..9a58a64f 100644 --- a/src/process_image.h +++ b/src/process_image.h @@ -56,6 +56,7 @@ enum { PEAK_HDF5, PEAK_CXI, PEAK_MSGPACK, + PEAK_NONE, }; -- cgit v1.2.3