diff options
author | Thomas White <taw@physics.org> | 2022-08-18 14:20:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-08-18 15:57:46 +0200 |
commit | eaf9e6250654e65daabbe98b6b4d5b5f8cd6924f (patch) | |
tree | ecaa9a88d1bfe1b03d36961d58f26f1dc2ab7c1d /libcrystfel/src/image.h | |
parent | e8847558c3831e309d0325382589f34b273e96c8 (diff) |
Restructure image data array creation
This adds a central procedure (image_create_dp_bad_sat) to create all
the arrays. Then it's up to the loading procedure to put the values
into the arrays.
This also makes the loading procedures responsible for marking NaN/inf
pixels in the bad pixel map. This avoids an additional sweep through
the image data, and makes it possible to skip the NaN/inf check
altogether if the image data comes, as it often does, in format which
can't represent NaN/inf anyway.
Finally, it removes quite a lot of duplicated code.
Diffstat (limited to 'libcrystfel/src/image.h')
-rw-r--r-- | libcrystfel/src/image.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h index 654bf3b1..3f1ed219 100644 --- a/libcrystfel/src/image.h +++ b/libcrystfel/src/image.h @@ -260,10 +260,10 @@ extern ImageFeatureList *image_read_peaks(const DataTemplate *dtempl, extern char **image_expand_frames(const DataTemplate *dtempl, const char *filename, int *nframes); -extern int image_set_zero_data(struct image *image, - const DataTemplate *dtempl); +extern int image_create_dp_bad_sat(struct image *image, + const DataTemplate *dtempl); -extern int image_set_zero_mask(struct image *image, +extern int image_set_zero_data(struct image *image, const DataTemplate *dtempl); extern int image_write(const struct image *image, |