From 778fc08e5d4b58d457e1754325eb0ff4127ccf1d Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 13 May 2019 17:41:30 +0100 Subject: Rename cleanup to wipe, and only export main function --- preproc/wipesides_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'preproc/wipesides_test.go') diff --git a/preproc/wipesides_test.go b/preproc/wipesides_test.go index 76151fb..b0ada4e 100644 --- a/preproc/wipesides_test.go +++ b/preproc/wipesides_test.go @@ -11,8 +11,6 @@ import ( "image/png" "os" "testing" - - "rescribe.xyz/go.git/binarize" ) var update = flag.Bool("update", false, "update golden files") @@ -79,9 +77,7 @@ func TestWipeSides(t *testing.T) { if err != nil { t.Fatalf("Could not open file %s: %v\n", c.orig, err) } - integral := binarize.Integralimg(orig) - lowedge, highedge := Findedges(integral, c.wsize, c.thresh) - actual = Wipesides(orig, lowedge, highedge) + actual = Wipe(orig, c.wsize, c.thresh) if *update { f, err := os.Create(c.golden) defer f.Close() -- cgit v1.2.1-24-ge1ad