aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-17 17:03:48 +0200
committerThomas White <taw@physics.org>2019-05-29 10:42:04 +0200
commit94b0050cc7735c3e1635cbc89c13c6b2c49c69c8 (patch)
tree009039e182541db4544683632c9153ff46fa27ef /libcrystfel/src/image.h
parent36e3370feddeb8dd18f97dc5db4da8e96c9f5c79 (diff)
Use Spectrum API for simulation
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r--libcrystfel/src/image.h35
1 files changed, 5 insertions, 30 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 56f07132..706b06b1 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -3,11 +3,11 @@
*
* Handle images and image features
*
- * Copyright © 2012-2018 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2019 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2009-2018 Thomas White <taw@physics.org>
+ * 2009-2019 Thomas White <taw@physics.org>
* 2014 Valerio Mariani
*
*
@@ -54,6 +54,7 @@ struct imagefile_field_list;
#include "crystal.h"
#include "index.h"
#include "events.h"
+#include "spectrum.h"
/**
* \file image.h
@@ -103,23 +104,6 @@ enum imagefile_type
typedef struct _imagefeaturelist ImageFeatureList;
-struct spectrum
-{
- int n;
- double *ks; /* 1/m */
- double *weights;
-};
-
-
-/** Structure describing a wavelength sample from a spectrum.
- * \deprecated Use struct spectrum instead. */
-struct sample
-{
- double k; /**< Wavevector in m^-1 */
- double weight; /**< Relative weight */
-};
-
-
struct beam_params
{
double photon_energy; /**< eV per photon */
@@ -182,17 +166,8 @@ struct image
/** Monotonically increasing serial number for this image */
int serial;
- /** Spectrum information (new format) */
- struct spectrum *spectrum;
-
- /** \name Spectrum information (old format)
- * @{
- * Array of samples, number of samples, and size of the array (may be
- * larger than nsamples) */
- struct sample *spectrum0;
- int nsamples;
- int spectrum_size;
- /** @} */
+ /** Spectrum information */
+ Spectrum *spectrum;
/** Wavelength of the incident radiation, in metres */
double lambda;