summaryrefslogtreecommitdiff
path: root/sauvola.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-11-17 13:02:42 +0000
committerNick White <git@njw.name>2022-11-17 13:02:42 +0000
commitb0c91593e0419abbaa6b61eaba95d4934de9a0dc (patch)
treece702d541154555f0deb979846e63f79d3ed662f /sauvola.go
parent109aa8b02ed63a4fe3054972f4c79d5c5328f610 (diff)
parent3475f12095dec658fc2cc86f171d6cfa5cab6f21 (diff)
Merge remote-tracking branch 'ssh/master'HEADv0.4.3master
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)
}