From 4eb86764539a99b0d7c843d4aa81bfb2955db13c Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 18 Apr 2019 13:24:02 +0100 Subject: Add basic cleanup tool; working, but more refinements planned. This uses integral image calculations, so they have been exported in the binarization package --- binarize/integralimg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binarize/integralimg.go') diff --git a/binarize/integralimg.go b/binarize/integralimg.go index 75e9cce..382b495 100644 --- a/binarize/integralimg.go +++ b/binarize/integralimg.go @@ -14,7 +14,7 @@ type integralwindow struct { height int } -func integralimg(img *image.Gray) [][]uint64 { +func Integralimg(img *image.Gray) [][]uint64 { b := img.Bounds() var oldy, oldx, oldxy uint64 var integral [][]uint64 -- cgit v1.2.1-24-ge1ad