diff options
author | Thomas White <taw@physics.org> | 2013-04-16 14:10:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-04-16 14:10:49 +0200 |
commit | 79993f9373e4a7fdcbff8a7d83af4b7289622cf3 (patch) | |
tree | ebb7d4134b5784db6cf98a0bb9beb148ab4ebdcf /libcrystfel/src | |
parent | b3f246e5c287670d06f3538d4d533d7c6d2e08ab (diff) |
Restore immediate rejection of pixels above max_adu
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/peaks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 14541ace..6b2d2b97 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -433,6 +433,9 @@ static void search_peaks_in_panel(struct image *image, float threshold, /* Overall threshold */ if ( data[fs+stride*ss] < threshold ) continue; + /* Immediate rejection of pixels above max_adu */ + if ( data[fs+stride*ss] > p->max_adu ) continue; + /* Get gradients */ dx1 = data[fs+stride*ss] - data[(fs+1)+stride*ss]; dx2 = data[(fs-1)+stride*ss] - data[fs+stride*ss]; |