summaryrefslogtreecommitdiff
path: root/cmd/pggraph/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/pggraph/main.go')
-rw-r--r--cmd/pggraph/main.go4
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))