summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-08-04 16:19:01 +0100
committerNick White <git@njw.name>2020-08-04 16:19:01 +0100
commitaa5bd02bd5ed5a6a8d371f953ef128fce64e61a7 (patch)
treee6512607ffc22727ea6cd3cb25bc7db9a4054976 /cmd
parentb26cb9182b566acac884627d790b0660c4766b62 (diff)
Update to replace integralimg package with integral package
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pggraph/main.go4
-rw-r--r--cmd/preprocmulti/main.go6
2 files changed, 5 insertions, 5 deletions
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 {