From 25c3d29ed7701cadbb3813878f25b633a7cd7c2d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 15 Nov 2011 13:59:17 +0100 Subject: Move indexing and rendering to libcrystfel --- libcrystfel/src/index.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 libcrystfel/src/index.h (limited to 'libcrystfel/src/index.h') diff --git a/libcrystfel/src/index.h b/libcrystfel/src/index.h new file mode 100644 index 00000000..9d4b69bd --- /dev/null +++ b/libcrystfel/src/index.h @@ -0,0 +1,63 @@ +/* + * index.h + * + * Perform indexing (somehow) + * + * (c) 2006-2010 Thomas White + * + * Part of CrystFEL - crystallography with a FEL + * + */ + + +#ifndef INDEX_H +#define INDEX_H + +#ifdef HAVE_CONFIG_H +#include +#endif + + +#include "cell.h" +#include "image.h" +#include "detector.h" + + +/* Indexing methods */ +typedef enum { + INDEXING_NONE, + INDEXING_DIRAX, + INDEXING_MOSFLM, + INDEXING_REAX, +} IndexingMethod; + + +/* Cell reduction methods */ +enum { + CELLR_NONE, + CELLR_REDUCE, + CELLR_COMPARE, + CELLR_COMPARE_AB, +}; + + +typedef struct _indexingprivate IndexingPrivate; + +extern IndexingPrivate *indexing_private(IndexingMethod indm); + +extern IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell, + const char *filename, + struct detector *det, + double nominal_photon_energy); + +extern void map_all_peaks(struct image *image); + +extern void index_pattern(struct image *image, UnitCell *cell, + IndexingMethod *indm, int cellr, int verbose, + IndexingPrivate **priv, int config_insane); + +extern void cleanup_indexing(IndexingPrivate **priv); + +extern IndexingMethod *build_indexer_list(const char *str, int *need_cell); + +#endif /* INDEX_H */ -- cgit v1.2.3