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 --- wipesides.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wipesides.go') diff --git a/wipesides.go b/wipesides.go index 0fc4a32..e4b9ad5 100644 --- a/wipesides.go +++ b/wipesides.go @@ -175,7 +175,8 @@ func WipeFile(inPath string, outPath string, wsize int, thresh float64, min int) gray := image.NewGray(image.Rect(0, 0, b.Dx(), b.Dy())) draw.Draw(gray, b, img, b.Min, draw.Src) - clean := Wipe(gray, wsize, thresh, min) + hclean := Wipe(gray, wsize, thresh, min) + clean := VWipe(hclean, wsize, thresh, min) f, err = os.Create(outPath) if err != nil { -- cgit v1.2.1-24-ge1ad