aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-05-13 12:04:47 +0200
committerThomas White <taw@physics.org>2017-06-21 14:26:02 +0200
commit38c560f7fc99383883890d746e74bd774a0309c7 (patch)
tree14deff6aab9832f8bcd00e90c28180e2d39d08a9 /src/indexamajig.c
parent5e9137947df9330308e1f66fa4a0701481ba6e06 (diff)
indexamajig: Add --min-peaks (basic hitfinder functionality)
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 439f9be3..fec7fc39 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -124,6 +124,7 @@ static void show_help(const char *s)
" --max-pix-count=<n> Only accept peaks if they include less than <n>\n"
" pixels, in the Peakfinder8 algorithm.\n"
" Default: 200.\n"
+" --min-peaks=<n> Minimum number of peaks for indexing.\n"
" --local-bg-radius=<n> Radius (in pixels) to use for the estimation of\n"
" local background in the Peakfinder8 algorithm.\n"
" Default: 3.\n"
@@ -258,6 +259,7 @@ int main(int argc, char *argv[])
iargs.stream_refls = 1;
iargs.int_diag = INTDIAG_NONE;
iargs.copyme = new_imagefile_field_list();
+ iargs.min_peaks = 0;
if ( iargs.copyme == NULL ) {
ERROR("Couldn't allocate HDF5 field list.\n");
return 1;
@@ -337,6 +339,7 @@ int main(int argc, char *argv[])
{"local-bg-radius", 1, NULL, 28},
{"min-res", 1, NULL, 29},
{"max-res", 1, NULL, 30},
+ {"min-peaks", 1, NULL, 31},
{0, 0, NULL, 0}
};
@@ -540,6 +543,10 @@ int main(int argc, char *argv[])
iargs.max_res = atoi(optarg);
break;
+ case 31:
+ iargs.min_peaks = atoi(optarg);
+ break;
+
case 0 :
break;