aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.h
blob: 2acb249b7bf1b3aad0bf4463d1220b2a8af1a673 (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
46
/*
 * 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);
extern void dump_peaks(struct image *image, FILE *ofh, pthread_mutex_t *mutex);

extern void output_intensities(struct image *image, UnitCell *cell,
                               RefList *reflections,
                               pthread_mutex_t *mutex, int polar,
                               int use_closer, FILE *ofh);

extern void output_pixels(struct image *image, UnitCell *cell,
                          pthread_mutex_t *mutex, int do_polar,
                          FILE *ofh, int circular_domain, double domain_r);

extern int peak_sanity_check(struct image *image, UnitCell *cell,
                             int circular_domain, double domain_r);
extern RefList *find_projected_peaks(struct image *image, UnitCell *cell,
                                     int circular_domain, double domain_r);
extern int integrate_peak(struct image *image, int xp, int yp,
                          double *xc, double *yc, double *intensity,
                          double *pbg, double *pmax,
                          int do_polar, int centroid);

#endif	/* PEAKS_H */