diff options
author | Thomas White <taw@physics.org> | 2010-06-02 14:13:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-02 14:13:22 +0200 |
commit | 09336f631b1e420ccf8809413e7811092d509724 (patch) | |
tree | 043f426f9ef02021f3178c3084061657e7ca540b /src | |
parent | d34f766f8963b58e32ea2d6021279a55d1ff9820 (diff) |
Proper handling of bad pixel mask
Diffstat (limited to 'src')
-rw-r--r-- | src/peaks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peaks.c b/src/peaks.c index 0d4292d3..6e8490ff 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -163,7 +163,7 @@ static int integrate_peak(struct image *image, int xp, int yp, /* Veto this peak if we tried to integrate in a bad region */ if ( image->flags != NULL ) { flags = image->flags[(x+xp)+image->width*(y+yp)]; - if ( flags & 0x03 ) return 1; + if ( !((flags & 0x01) && (flags & 0x04)) ) return 1; } p = find_panel(&image->det, x+xp, y+yp); |