From 4417dabb492eb07bec9834bc9bc99165cd054c73 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 16 Aug 2010 14:46:42 +0200 Subject: indexamajig: Prepare for other indexing methods which need initial setup --- src/templates.c | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/templates.c (limited to 'src/templates.c') diff --git a/src/templates.c b/src/templates.c new file mode 100644 index 00000000..db28b9b9 --- /dev/null +++ b/src/templates.c @@ -0,0 +1,41 @@ +/* + * templates.c + * + * Indexing by template matching + * + * (c) 2006-2010 Thomas White + * + * Part of CrystFEL - crystallography with a FEL + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + + +#include "index.h" +#include "index-priv.h" + + +/* Private data for template indexing */ +struct _indexingprivate_template +{ + struct _indexingprivate base; +}; + + +IndexingPrivate *generate_templates(UnitCell *cell, const char *filename) +{ + struct _indexingprivate_template *priv; + + priv = calloc(1, sizeof(struct _indexingprivate_template)); + priv->base.indm = INDEXING_TEMPLATE; + + return (struct _indexingprivate *)priv; +} + + +void match_templates(struct image *image, IndexingPrivate *ipriv) +{ +} -- cgit v1.2.3