aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-08 12:05:46 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commite0d5963e9da96789599f344a5b16fa484ff3c3ec (patch)
tree206f42c589a0ae10fb56e8b32ce51f6046f258b9 /libcrystfel
parente1900411e6c4728db4440f4754b2e6f434dc6da0 (diff)
Convert filters.c to detgeom
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/filters.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcrystfel/src/filters.c b/libcrystfel/src/filters.c
index 352046aa..ce50f210 100644
--- a/libcrystfel/src/filters.c
+++ b/libcrystfel/src/filters.c
@@ -7,7 +7,7 @@
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2010-2016 Thomas White <taw@physics.org>
+ * 2010-2020 Thomas White <taw@physics.org>
* 2013 Anton Barty <anton.barty@desy.de>
*
* This file is part of CrystFEL.
@@ -84,8 +84,8 @@ void filter_noise(struct image *image)
{
int i;
- for ( i=0; i<image->det->n_panels; i++ ) {
- struct panel *p = &image->det->panels[i];
+ for ( i=0; i<image->detgeom->n_panels; i++ ) {
+ struct detgeom_panel *p = &image->detgeom->panels[i];
filter_noise_in_panel(image->dp[i], p->w, p->h);
}
}
@@ -149,14 +149,14 @@ void filter_median(struct image *image, int size)
/* Determine local background
* (median over window width either side of current pixel) */
- for ( pn=0; pn<image->det->n_panels; pn++ ) {
+ for ( pn=0; pn<image->detgeom->n_panels; pn++ ) {
int fs, ss;
int i;
- struct panel *p;
+ struct detgeom_panel *p;
float *localBg;
- p = &image->det->panels[pn];
+ p = &image->detgeom->panels[pn];
localBg = calloc(p->w*p->h, sizeof(float));
if ( localBg == NULL ) {