aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-11-06 12:13:47 +0100
committerThomas White <taw@physics.org>2015-11-06 12:14:03 +0100
commit9581408bb811ac75644ea31a75a4a1f29b4a4e9b (patch)
treee85e5fbe195bd449b39d5dd9d906ed5b6f0bf3d1
parenta6f9739a906d88e94685c3531e78cf8b71dd75a2 (diff)
Fix iteration bounds for peak search
It was out by one because of some leftover characters from the previous version.
-rw-r--r--libcrystfel/src/peaks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 69aad4c0..50a6852e 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -380,8 +380,8 @@ static void search_peaks_in_panel(struct image *image, float threshold,
data = image->dp[pn];
stride = p->w;
- for ( ss=0; ss<=p->h; ss++ ) {
- for ( fs=0; fs<=p->w; fs++ ) {
+ for ( ss=0; ss<p->h; ss++ ) {
+ for ( fs=0; fs<p->w; fs++ ) {
double dx1, dx2, dy1, dy2;
double dxs, dys;