aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/taketwo.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-07-06 17:06:52 +0200
committerThomas White <taw@physics.org>2017-07-06 17:25:40 +0200
commit5bf72b123cb582f63652e32420d4fbe748cbb8d2 (patch)
treee70678eb192cf6169757d7a80235fb429d92303a /libcrystfel/src/taketwo.h
parent92d00d19d5b4a6b72a35183bea6a83a4062e5eca (diff)
indexamajig: Add TakeTwo-specific options
Diffstat (limited to 'libcrystfel/src/taketwo.h')
-rw-r--r--libcrystfel/src/taketwo.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/libcrystfel/src/taketwo.h b/libcrystfel/src/taketwo.h
index 4c06e334..a03292a8 100644
--- a/libcrystfel/src/taketwo.h
+++ b/libcrystfel/src/taketwo.h
@@ -3,13 +3,13 @@
*
* Rewrite of TakeTwo algorithm (Acta D72 (8) 956-965) for CrystFEL
*
- * Copyright © 2016 Helen Ginn
- * Copyright © 2016 Deutsches Elektronen-Synchrotron DESY,
- * a research centre of the Helmholtz Association.
+ * Copyright © 2016-2017 Helen Ginn
+ * Copyright © 2016-2017 Deutsches Elektronen-Synchrotron DESY,
+ * a research centre of the Helmholtz Association.
*
* Authors:
- * 2016 Helen Ginn <helen@strubi.ox.ac.uk>
- * 2016 Thomas White <taw@physics.org>
+ * 2016 Helen Ginn <helen@strubi.ox.ac.uk>
+ * 2016-2017 Thomas White <taw@physics.org>
*
* This file is part of CrystFEL.
*
@@ -32,10 +32,20 @@
#define TAKETWO_H
#include "cell.h"
+#include "index.h"
+
+struct taketwo_options
+{
+ int member_thresh;
+ double len_tol;
+ double angle_tol;
+ double trace_tol;
+};
+
extern void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell,
struct detector *det, float *ltl);
-extern int taketwo_index(struct image *image, void *priv);
+extern int taketwo_index(struct image *image, struct taketwo_options *opts, void *priv);
extern void taketwo_cleanup(IndexingPrivate *pp);
#endif /* TAKETWO_H */