aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/xgandalf.h
blob: 593b73fb781dc826465f369e07acf2a978c86f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * xgandalf.h
 *
 *  Created on: 08.08.2017
 *      Author: gevorkov
 */

#ifndef LIBCRYSTFEL_SRC_XGANDALF_H_
#define LIBCRYSTFEL_SRC_XGANDALF_H_

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

struct xgandalf_options {
	unsigned int sampling_pitch;
	unsigned int grad_desc_iterations;
	float tolerance;
	unsigned int no_deviation_from_provided_cell;
	float minLatticeVectorLength_A;
	float maxLatticeVectorLength_A;
};

#include <stddef.h>
#include "index.h"

int run_xgandalf(struct image *image, void *ipriv);

void *xgandalf_prepare(IndexingMethod *indm, UnitCell *cell,
                       struct xgandalf_options *xgandalf_opts);

void xgandalf_cleanup(void *pp);

const char *xgandalf_probe(UnitCell *cell);


#endif /* LIBCRYSTFEL_SRC_XGANDALF_H_ */