diff options
author | Nick White <git@njw.name> | 2019-04-18 13:24:02 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-04-18 13:24:02 +0100 |
commit | 4eb86764539a99b0d7c843d4aa81bfb2955db13c (patch) | |
tree | 1af1349c34de6b31829867baf18e31fa218cd191 /binarize/integralimg.go | |
parent | 75173a030b1f3eb8a1e161ffd1732daa40a5e178 (diff) |
Add basic cleanup tool; working, but more refinements planned.
This uses integral image calculations, so they have been exported in the binarization package
Diffstat (limited to 'binarize/integralimg.go')
-rw-r--r-- | binarize/integralimg.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |