aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-07 14:02:26 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commitc6115928bb875b0ed408655ff12b9ca00dae017c (patch)
tree4893d810372a0cd21d8a2115ef9a26af4e90ce1e /libcrystfel/src/predict-refine.h
parentbbfee92698c5bc2d5ab91782ab5215884da1c93b (diff)
Move Mille stuff to separate file
Diffstat (limited to 'libcrystfel/src/predict-refine.h')
-rw-r--r--libcrystfel/src/predict-refine.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/libcrystfel/src/predict-refine.h b/libcrystfel/src/predict-refine.h
index 91b44e07..5e2552e6 100644
--- a/libcrystfel/src/predict-refine.h
+++ b/libcrystfel/src/predict-refine.h
@@ -29,24 +29,31 @@
#ifndef PREDICT_REFINE_H
#define PREDICT_REFINE_H
+struct reflpeak;
#include "crystal.h"
+#include "crystfel-mille.h"
-struct image;
-
-typedef void *Mille;
+struct reflpeak {
+ Reflection *refl;
+ struct imagefeature *peak;
+ double Ih; /* normalised */
+ struct detgeom_panel *panel; /* panel the reflection appears on
+ * (we assume this never changes) */
+};
/**
* \file predict-refine.h
* Prediction refinement: refinement of indexing solutions before integration.
*/
-extern Mille *crystfel_mille_new(const char *outFileName,
- int asBinary,
- int writeZero);
-extern void crystfel_mille_free(Mille *m);
-
extern int refine_prediction(struct image *image, Crystal *cr, Mille *mille);
+
extern int refine_radius(Crystal *cr, struct image *image);
+extern double x_dev(struct reflpeak *rp, struct detgeom *det,
+ double dx, double dy);
+
+extern double y_dev(struct reflpeak *rp, struct detgeom *det,
+ double dx, double dy);
#endif /* PREDICT_REFINE_H */