aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r--libcrystfel/src/image.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 357a550a..1cd9f35a 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -123,6 +123,15 @@ enum imagefile_type
/* An opaque type representing a list of image features */
typedef struct _imagefeaturelist ImageFeatureList;
+
+struct spectrum
+{
+ int n;
+ double *ks; /* 1/m */
+ double *weights;
+};
+
+
/* Structure describing a wavelength sample from a spectrum */
struct sample
{
@@ -213,6 +222,9 @@ struct image {
int serial; /* Monotonically ascending serial
* number for this image */
+ struct spectrum *spectrum; /* Beam spectrum for pink beam data */
+
+ // These only used in pattern_sim, to be changed to struct spectrum from above later...
struct sample *spectrum0;
int nsamples; /* Number of wavelengths */
int spectrum_size; /* Size of "spectrum" */