summaryrefslogtreecommitdiff
path: root/sauvola.go
diff options
context:
space:
mode:
Diffstat (limited to 'sauvola.go')
-rw-r--r--sauvola.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sauvola.go b/sauvola.go
index 75d558c..f92c5ce 100644
--- a/sauvola.go
+++ b/sauvola.go
@@ -80,5 +80,5 @@ func PreCalcedSauvola(intImg integral.Image, intSqImg integral.SqImage, img imag
func centeredRectangle(x, y, size int) image.Rectangle {
step := size / 2
- return image.Rect(x - step - 1, y - step - 1, x + step, y + step)
+ return image.Rect(x-step-1, y-step-1, x+step, y+step)
}