diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/calibrate-detector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/calibrate-detector.c b/src/calibrate-detector.c index 1e6d88aa..bcb8bfcf 100644 --- a/src/calibrate-detector.c +++ b/src/calibrate-detector.c @@ -144,7 +144,7 @@ static void *process_image(void *pargsv) if ( ((y+yp)>=image.height) || ((y+yp)<0) ) continue; float val = image.data[x+image.width*y]; - pargs->sum[x+pargs->w*y] += val; + pargs->sum[(x+xp)+pargs->w*(y+yp)] += val; } } |