aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-04 15:25:19 +0200
committerThomas White <taw@physics.org>2020-08-04 15:25:19 +0200
commit43b71428b68e94d22c2c5f9e8a25b1b46bc04a4c (patch)
tree435b99f1a487c6144d7ec74a60cd5c3f0a784215 /libcrystfel/src/image.h
parenta09f8c4cd9c4abe04b99129af07e51fdc5dad4b1 (diff)
Add image_create_for_simulation()
...and factorise common code
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r--libcrystfel/src/image.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h
index 9f88d0e7..a2f160af 100644
--- a/libcrystfel/src/image.h
+++ b/libcrystfel/src/image.h
@@ -186,11 +186,12 @@ extern void mark_resolution_range_as_bad(struct image *image,
double min, double max);
extern struct image *image_new(void);
-extern struct image *image_read(DataTemplate *dtempl,
+extern struct image *image_read(const DataTemplate *dtempl,
const char *filename,
const char *event,
int no_image_data,
int no_mask_data);
+extern struct image *image_create_for_simulation(const DataTemplate *dtempl);
extern void image_free(struct image *image);
extern ImageFeatureList *image_read_peaks(const DataTemplate *dtempl,
@@ -208,9 +209,10 @@ extern int image_set_zero_mask(struct image *image,
const DataTemplate *dtempl);
/* Use within libcrystfel only */
-extern void create_detgeom(struct image *image,
- const DataTemplate *dtempl);
+extern int create_detgeom(struct image *image,
+ const DataTemplate *dtempl);
+/* Use within libcrystfel only */
extern int image_read_image_data(struct image *image,
const DataTemplate *dtempl,
const char *filename,