From 53c2577770cc22178c60c2bad3a0ddefc323484a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 12 Jun 2010 20:14:22 -0700 Subject: I can't brain today --- src/calibrate-detector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3