diff options
-rw-r--r-- | src/peaks.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/peaks.c b/src/peaks.c index 729ad6db..a683545b 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -231,6 +231,10 @@ int integrate_peak(struct image *image, int xp, int yp, *intensity = total; } + if ( in_bad_region(image->det, *xc, *yc) ) { + return 1; + } + if ( pbg != NULL ) { *pbg = (noise / noise_counts); } @@ -353,11 +357,6 @@ static void search_peaks_in_panel(struct image *image, float threshold, continue; } - if ( in_bad_region(image->det, f_fs, f_ss) ) { - nrej_bad++; - continue; - } - /* It is possible for the centroid to fall outside the image */ if ( (f_fs < p->min_fs) || (f_fs > p->max_fs) || (f_ss < p->min_ss) || (f_ss > p->max_ss) ) { |