diff options
author | Thomas White <taw@physics.org> | 2013-02-05 18:05:30 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-05 18:05:30 +0100 |
commit | 2f06e6a1abf28a22cf78a6c3d89596bec2a6a8c5 (patch) | |
tree | c7c8beda3593ae1dfe31a646f51787c992f59eef /libcrystfel/src/peaks.c | |
parent | 2ce85a95d86e350b785d206405e97d7317672188 (diff) |
Fixes for indexing pipeline
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r-- | libcrystfel/src/peaks.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 08595ef5..54ba6468 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -148,7 +148,7 @@ static int cull_peaks(struct image *image) static void add_crystal_to_mask(struct image *image, struct panel *p, - double ir_out, double ir_inn, int w, int h, + double ir_inn, int w, int h, int *mask, Crystal *cr) { Reflection *refl; @@ -200,8 +200,7 @@ static void add_crystal_to_mask(struct image *image, struct panel *p, /* cfs, css relative to panel origin */ -static int *make_BgMask(struct image *image, struct panel *p, - double ir_out, double ir_inn) +static int *make_BgMask(struct image *image, struct panel *p, double ir_inn) { int *mask; int w, h; @@ -215,7 +214,7 @@ static int *make_BgMask(struct image *image, struct panel *p, if ( image->crystals == NULL ) return mask; for ( i=0; i<image->n_crystals; i++ ) { - add_crystal_to_mask(image, p, ir_inn, ir_out, + add_crystal_to_mask(image, p, ir_inn, w, h, mask, image->crystals[i]); } @@ -860,8 +859,7 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub, } for ( i=0; i<image->det->n_panels; i++ ) { int *mask; - mask = make_BgMask(image, &image->det->panels[i], - ir_out, ir_inn); + mask = make_BgMask(image, &image->det->panels[i], ir_inn); if ( mask == NULL ) { ERROR("Couldn't create background mask.\n"); return; |