summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-07-27 00:15:05 +0100
committerNick White <git@njw.name>2020-07-27 00:15:05 +0100
commit4627227579c6922406517cf8ad0eb05728d71e0f (patch)
treee6324da1f400bdfff6bee5b163328fb90adfc00a /util.go
parent97753052db0239d907631d4a480ac742412827d3 (diff)
Update wipesides and pggraph to new functions in integralimg, and remove experimental splittable
Diffstat (limited to 'util.go')
-rw-r--r--util.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/util.go b/util.go
index 1f8c9a5..7cbaebc 100644
--- a/util.go
+++ b/util.go
@@ -8,14 +8,11 @@ import (
"errors"
"image"
"math"
-
- "rescribe.xyz/integralimg"
)
-type ImageWindower interface {
+type SummableImage interface {
image.Image
- GetWindow(x, y, size int) integralimg.Window
- GetVerticalWindow(x, width int) integralimg.Window
+ Sum(r image.Rectangle) uint64
}
func mean(i []int) float64 {