aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
authorAndrew Martin <andrew.martin@desy.de>2011-06-06 18:26:32 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:28 +0100
commit0e2394a8cd805837122fa18c25f7687f5834c6dd (patch)
treef55fdafd4e0a94d14e163ac27b593e929556a1d7 /src/peaks.c
parent174efddd7d70baada39d933c77bc568267ba115f (diff)
add 3 ring background estimate; change default integration radius to 3
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 35a8cd23..2879919e 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -165,8 +165,8 @@ int integrate_peak(struct image *image, int cfs, int css,
if ( p->no_index ) return 1;
lim = p->integr_radius;
- mid_lim = 2.0 + lim;
- out_lim = 4.0 + lim;
+ mid_lim = 3.0 + lim;
+ out_lim = 6.0 + lim;
lim_sq = pow(lim, 2.0);
mid_lim_sq = pow(mid_lim, 2.0);
out_lim_sq = pow(out_lim, 2.0);
@@ -247,6 +247,7 @@ int integrate_peak(struct image *image, int cfs, int css,
noise_mean = noise / noise_counts;
/* The centroid is excitingly undefined if there is no intensity */
+ centroid = 0;
if ( centroid && (total != 0) ) {
*pfs = ((double)fsct / total) + 0.5;
*pss = ((double)ssct / total) + 0.5;