From e0d5963e9da96789599f344a5b16fa484ff3c3ec Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 8 Jun 2020 12:05:46 +0200 Subject: Convert filters.c to detgeom --- libcrystfel/src/filters.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libcrystfel/src') 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 + * 2010-2020 Thomas White * 2013 Anton Barty * * This file is part of CrystFEL. @@ -84,8 +84,8 @@ void filter_noise(struct image *image) { int i; - for ( i=0; idet->n_panels; i++ ) { - struct panel *p = &image->det->panels[i]; + for ( i=0; idetgeom->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; pndet->n_panels; pn++ ) { + for ( pn=0; pndetgeom->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 ) { -- cgit v1.2.3