From aa5bd02bd5ed5a6a8d371f953ef128fce64e61a7 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 4 Aug 2020 16:19:01 +0100 Subject: Update to replace integralimg package with integral package --- cmd/pggraph/main.go | 4 ++-- cmd/preprocmulti/main.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd') diff --git a/cmd/pggraph/main.go b/cmd/pggraph/main.go index c7909b5..2da5c57 100644 --- a/cmd/pggraph/main.go +++ b/cmd/pggraph/main.go @@ -21,7 +21,7 @@ import ( "sort" chart "github.com/wcharczuk/go-chart" - "rescribe.xyz/integralimg" + "rescribe.xyz/integral" "rescribe.xyz/preproc" ) @@ -173,7 +173,7 @@ func main() { img = sideways(gray) b = img.Bounds() } - intImg := integralimg.NewImage(b) + intImg := integral.NewImage(b) draw.Draw(intImg, b, img, b.Min, draw.Src) points := make(map[int]float64) diff --git a/cmd/preprocmulti/main.go b/cmd/preprocmulti/main.go index b99909a..f5612cf 100644 --- a/cmd/preprocmulti/main.go +++ b/cmd/preprocmulti/main.go @@ -19,7 +19,7 @@ import ( "os" "rescribe.xyz/preproc" - "rescribe.xyz/integralimg" + "rescribe.xyz/integral" ) // TODO: do more testing to see how good this assumption is @@ -70,9 +70,9 @@ func main() { var clean, threshimg image.Image log.Print("Precalculating integral images") - intImg := integralimg.NewImage(b) + intImg := integral.NewImage(b) draw.Draw(intImg, b, img, b.Min, draw.Src) - intSqImg := integralimg.NewSqImage(b) + intSqImg := integral.NewSqImage(b) draw.Draw(intSqImg, b, img, b.Min, draw.Src) for _, k := range ksizes { -- cgit v1.2.1-24-ge1ad