diff options
author | Thomas White <taw@physics.org> | 2012-04-05 15:06:17 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-04-05 15:13:59 +0200 |
commit | 89b372a8d17f3e9d5f8a4fef36cbc5aba033e639 (patch) | |
tree | 0357cf64c485e85428b2e918a462beafb849f37f /libcrystfel | |
parent | 902378fa6beb49b171834ab2c9357f281824be30 (diff) |
Fix iteration bounds for peak integration
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/peaks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 829a35ab..2ab45e53 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -185,8 +185,8 @@ static int integrate_peak(struct image *image, int cfs, int css, out_lim_sq = pow(ir_out, 2.0); /* Estimate the background */ - for ( fs=-ir_out; fs<+ir_out; fs++ ) { - for ( ss=-ir_out; ss<+ir_out; ss++ ) { + for ( fs=-ir_out; fs<=+ir_out; fs++ ) { + for ( ss=-ir_out; ss<=+ir_out; ss++ ) { double val; uint16_t flags; @@ -234,8 +234,8 @@ static int integrate_peak(struct image *image, int cfs, int css, pk_total = 0.0; pk_counts = 0; fsct = 0.0; ssct = 0.0; - for ( fs=-ir_inn; fs<+ir_inn; fs++ ) { - for ( ss=-ir_inn; ss<+ir_inn; ss++ ) { + for ( fs=-ir_inn; fs<=+ir_inn; fs++ ) { + for ( ss=-ir_inn; ss<=+ir_inn; ss++ ) { double val; uint16_t flags; |