aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-19 18:26:20 +0100
committerThomas White <taw@physics.org>2010-01-19 18:26:20 +0100
commit4a1380a1edfcaa29ce8658ceecdc8c99d0e02d8f (patch)
tree9b7117bc27cc7557a089a0aeccea573eb85e91ff /src/indexamajig.c
parenta4c5daf2f0f37577798af0de5cd31dc81f87eec5 (diff)
Improve the operation of --dump-peaks
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 3cd3a408..2604dd14 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -141,12 +141,14 @@ int main(int argc, char *argv[])
hdf5_read(hdfile, &image);
/* Perform 'fine' peak search */
- search_peaks(&image, config_dumpfound);
+ search_peaks(&image);
- if ( image_feature_count(image.features) > 25 ) {
+ if ( image_feature_count(image.features) > 5 ) {
n_hits++;
+ if ( config_dumpfound ) dump_peaks(&image);
+
if ( !config_noindex ) {
/* Calculate orientation matrix (by magic) */