diff options
author | Nick White <git@njw.name> | 2020-07-27 00:15:05 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-07-27 00:15:05 +0100 |
commit | 4627227579c6922406517cf8ad0eb05728d71e0f (patch) | |
tree | e6324da1f400bdfff6bee5b163328fb90adfc00a /cmd/pggraph | |
parent | 97753052db0239d907631d4a480ac742412827d3 (diff) |
Update wipesides and pggraph to new functions in integralimg, and remove experimental splittable
Diffstat (limited to 'cmd/pggraph')
-rw-r--r-- | cmd/pggraph/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |