summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
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 {