summaryrefslogtreecommitdiff
path: root/wipesides.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 /wipesides.go
parente032e5692c4f3cf31ff495222c7f8109b5406c7f (diff)
Have wipefile do vertical as well as horizontal wipingv0.1.3
Diffstat (limited to 'wipesides.go')
-rw-r--r--wipesides.go3
1 files changed, 2 insertions, 1 deletions
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 {