From eee5f3a9dac03134ee2269968ad870b0c812c036 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 4 May 2010 06:50:01 -0700 Subject: pattern_sim: Switchable gradient methods --- src/diffraction.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/diffraction.h') diff --git a/src/diffraction.h b/src/diffraction.h index f3608a4b..85d06cc2 100644 --- a/src/diffraction.h +++ b/src/diffraction.h @@ -19,10 +19,16 @@ #include "image.h" #include "cell.h" +typedef enum { + GRADIENT_MOSAIC, + GRADIENT_INTERPOLATE, + GRADIENT_PHASED +} GradientMethod; + extern void get_diffraction(struct image *image, int na, int nb, int nc, const double *intensities, const unsigned int *counts, UnitCell *cell, - int do_water); + int do_water, GradientMethod m); extern struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys, unsigned int sampling, float *ttp, float k); -- cgit v1.2.3