aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-05-04 06:50:01 -0700
committerThomas White <taw@bitwiz.org.uk>2010-05-04 06:50:01 -0700
commiteee5f3a9dac03134ee2269968ad870b0c812c036 (patch)
tree53242a82a30e5672cbe098196615f1e2fe7d91e6 /src/diffraction.h
parente666496c3143524d835f4cbf489974ce6c5556a5 (diff)
pattern_sim: Switchable gradient methods
Diffstat (limited to 'src/diffraction.h')
-rw-r--r--src/diffraction.h8
1 files changed, 7 insertions, 1 deletions
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);