aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-01-06 15:29:14 +0100
committerThomas White <taw@physics.org>2016-01-06 15:29:14 +0100
commitcdee3ca726dbe1fa43dc17c8ab2c85976fe45dbf (patch)
tree7844b2ba1320c18d2a6817fe5269358e84b1ff12
parent120fca2d9a7abd79e41ef5051bd22efedcb2d493 (diff)
search_peaks_in_panel(): Fix iteration bounds (again)
-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 4174bb9f..1de7f132 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -377,8 +377,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=1; ss<p->h-1; ss++ ) {
+ for ( fs=1; fs<p->w-1; fs++ ) {
double dx1, dx2, dy1, dy2;
double dxs, dys;