summaryrefslogtreecommitdiff
path: root/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'util.go')
-rw-r--r--util.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/util.go b/util.go
index 304b209..1f8c9a5 100644
--- a/util.go
+++ b/util.go
@@ -8,14 +8,14 @@ import (
"errors"
"image"
"math"
+
+ "rescribe.xyz/integralimg"
)
-type UsefulImg interface {
- // TODO: name better; maybe verb, x-er
- // TODO: implement these for regular image, and use them to make
- // image functions generic for integral and non- images
- MeanWindow()
- MeanStdDevWindow()
+type ImageWindower interface {
+ image.Image
+ GetWindow(x, y, size int) integralimg.Window
+ GetVerticalWindow(x, width int) integralimg.Window
}
func mean(i []int) float64 {