aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-01 17:15:49 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:27 +0100
commite0c2ff59af7421d2ef10ffc02978ff0964b5daff (patch)
treebfa8a4fa74e63294bf3de32e4b9220cc8c5809a0 /src/peaks.h
parentd36950988414b24180ffaa271fd943632ce26a79 (diff)
Make background subtraction optional
Diffstat (limited to 'src/peaks.h')
-rw-r--r--src/peaks.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/peaks.h b/src/peaks.h
index 2faa2b5e..ec473fd1 100644
--- a/src/peaks.h
+++ b/src/peaks.h
@@ -25,7 +25,7 @@ extern void search_peaks(struct image *image, float threshold,
float min_gradient);
extern void integrate_reflections(struct image *image,
- int polar, int use_closer);
+ int polar, int use_closer, int bgsub);
extern int peak_sanity_check(struct image *image, UnitCell *cell,
int circular_domain, double domain_r);
@@ -33,9 +33,10 @@ extern int peak_sanity_check(struct image *image, UnitCell *cell,
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,
+/* 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 do_polar, int centroid, int bgsub);
#endif /* PEAKS_H */