From 566b2be53cb0de5b52b806a6418fcab795831d34 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 4 May 2020 11:04:00 +0100 Subject: Have wipefile do vertical as well as horizontal wiping --- util.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.go') 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()) { -- cgit v1.2.1-24-ge1ad