From 4627227579c6922406517cf8ad0eb05728d71e0f Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 27 Jul 2020 00:15:05 +0100 Subject: Update wipesides and pggraph to new functions in integralimg, and remove experimental splittable --- cmd/pggraph/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/pggraph') diff --git a/cmd/pggraph/main.go b/cmd/pggraph/main.go index 6c13fe2..59946ad 100644 --- a/cmd/pggraph/main.go +++ b/cmd/pggraph/main.go @@ -22,6 +22,7 @@ import ( chart "github.com/wcharczuk/go-chart" "rescribe.xyz/integralimg" + "rescribe.xyz/preproc" ) const usage = `Usage: pggraph [-vertical] [-width] inimg graphname @@ -178,8 +179,7 @@ func main() { points := make(map[int]float64) maxx := b.Dx() - 1 for x := 0; x+*width < maxx; x += *width { - w := intImg.GetVerticalWindow(x, *width) - points[x] = w.Proportion() + points[x] = preproc.ProportionSlice(intImg, x, *width) } f, err = os.Create(flag.Arg(1)) -- cgit v1.2.1-24-ge1ad