summaryrefslogtreecommitdiff
path: root/integralimg_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integralimg_test.go')
-rw-r--r--integralimg_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/integralimg_test.go b/integralimg_test.go
index 3bc8dd6..df97caa 100644
--- a/integralimg_test.go
+++ b/integralimg_test.go
@@ -23,10 +23,9 @@ func TestFromPNG(t *testing.T) {
t.Fatalf("Could not decode image: %v\n", err)
}
b := img.Bounds()
- gray := image.NewGray(image.Rect(0, 0, b.Dx(), b.Dy()))
- draw.Draw(gray, b, img, b.Min, draw.Src)
- integral := ToIntegralImg(gray)
+ integral := NewImage(image.Rect(0, 0, b.Dx(), b.Dy()))
+ draw.Draw(integral, b, img, b.Min, draw.Src)
if !imgsequal(img, integral) {
t.Errorf("Read png image differs to integral\n")