aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-12 20:14:22 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-12 20:14:22 -0700
commit53c2577770cc22178c60c2bad3a0ddefc323484a (patch)
tree9ad2e14c69c7af5b410de08cead9caa0d4f571d7
parentb834e763c8dc90f8a16446a90da348e085c17d6b (diff)
I can't brain today
-rw-r--r--src/calibrate-detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calibrate-detector.c b/src/calibrate-detector.c
index bcb8bfcf..127e2ecd 100644
--- a/src/calibrate-detector.c
+++ b/src/calibrate-detector.c
@@ -143,7 +143,7 @@ static void *process_image(void *pargsv)
if ( ((x+xp)>=image.width) || ((x+xp)<0) ) continue;
if ( ((y+yp)>=image.height) || ((y+yp)<0) ) continue;
- float val = image.data[x+image.width*y];
+ float val = image.data[(x+xp)+image.width*(y+yp)];
pargs->sum[(x+xp)+pargs->w*(y+yp)] += val;
}