aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.h
blob: ffeb896bf9f071bdec17c314209727f409a9783a (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
38
39
40
41
42
43
44
45
/*
 * peaks.h
 *
 * Peak search and other image analysis
 *
 * (c) 2006-2010 Thomas White <taw@physics.org>
 *
 * Part of CrystFEL - crystallography with a FEL
 *
 */


#ifndef PEAKS_H
#define PEAKS_H

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

#include <pthread.h>

#include "reflist.h"

extern void search_peaks(struct image *image, float threshold,
                         float min_gradient, float min_snr);

extern void integrate_reflections(struct image *image,
                                  int polar, int use_closer, int bgsub,
                                  double min_snr);

extern double peak_lattice_agreement(struct image *image, UnitCell *cell,
                                     double *pst);

extern int peak_sanity_check(struct image *image);

/* Exported so it can be poked by integration_check */
extern int integrate_peak(struct image *image, int cfs, int css,
                          double *pfs, double *pss, double *intensity,
                          double *pbg, double *pmax, double *sigma,
                          int do_polar, int centroid, int bgsub);

extern void estimate_resolution(RefList *list, UnitCell *cell,
                                double *min, double *max);

#endif	/* PEAKS_H */