aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-10 15:29:22 +0200
committerThomas White <taw@physics.org>2019-09-10 16:39:17 +0200
commit8287ae8cd30b5446c6269c8cf58b742a2e304a1f (patch)
tree4e81cda547e1861451c2a86309bd9ccd6e3bf62f
parentb483a4e696e3cf838a9194ef21f8caab5e8eb54b (diff)
indexamajig: Add --peaks=none
-rw-r--r--src/indexamajig.c2
-rw-r--r--src/process_image.c3
-rw-r--r--src/process_image.h1
3 files changed, 6 insertions, 0 deletions
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,
};