summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-05-04 11:04:00 +0100
committerNick White <git@njw.name>2020-05-04 11:04:00 +0100
commit566b2be53cb0de5b52b806a6418fcab795831d34 (patch)
tree0ee12000fa35e0fff4850557387c2ba246562752 /util.go
parente032e5692c4f3cf31ff495222c7f8109b5406c7f (diff)
Have wipefile do vertical as well as horizontal wipingv0.1.3
Diffstat (limited to 'util.go')
-rw-r--r--util.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.go b/util.go
index f0864e9..304b209 100644
--- a/util.go
+++ b/util.go
@@ -79,6 +79,8 @@ func surrounding(img *image.Gray, x int, y int, size int) []int {
return s
}
+// BinToZeroInv converts a binary thresholded image to a zero inverse
+// binary thresholded image
func BinToZeroInv(bin *image.Gray, orig *image.RGBA) (*image.RGBA, error) {
b := bin.Bounds()
if !b.Eq(orig.Bounds()) {