summaryrefslogtreecommitdiff
path: root/integralimg_test.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-07-25 19:18:12 +0100
committerNick White <git@njw.name>2020-07-25 19:30:10 +0100
commita3a496c6c80d747788769410c3e5029e6669566b (patch)
treedfe2c1d16e47bda366a347e7169a52f2c7a2a585 /integralimg_test.go
parent5ad45af43af2cdc832226632af2024cf416baedd (diff)
Improve documentation and simplify test code
Diffstat (limited to 'integralimg_test.go')
-rw-r--r--integralimg_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integralimg_test.go b/integralimg_test.go
index 8b882db..627249f 100644
--- a/integralimg_test.go
+++ b/integralimg_test.go
@@ -24,7 +24,7 @@ func TestFromPNG(t *testing.T) {
}
b := img.Bounds()
- integral := NewImage(image.Rect(0, 0, b.Dx(), b.Dy()))
+ integral := NewImage(b)
draw.Draw(integral, b, img, b.Min, draw.Src)
if !imgsequal(img, integral) {
@@ -44,7 +44,7 @@ func TestSqFromPNG(t *testing.T) {
}
b := img.Bounds()
- integral := NewSqImage(image.Rect(0, 0, b.Dx(), b.Dy()))
+ integral := NewSqImage(b)
draw.Draw(integral, b, img, b.Min, draw.Src)
if !imgsequal(img, integral) {