We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9a753 commit 3cdcc6eCopy full SHA for 3cdcc6e
test/projective/affine.jl
@@ -60,12 +60,9 @@ include("../imports.jl")
60
imbounds = getbounds(image)
61
kpbounds = getbounds(keypoints)
62
tfm1 = ScaleKeepAspect((50, 50))
63
- @test getprojection(tfm1, imbounds) ≈ getprojection(ScaleRatio((1, 1)), imbounds)
64
- @test getprojection(tfm1, kpbounds) ≈ getprojection(ScaleRatio((1, 1)), kpbounds)
65
-
66
tfm2 = ScaleKeepAspect((25, 25))
67
- @test getprojection(tfm2, imbounds) ≈ getprojection(ScaleRatio((1 / 2, 1 / 2)), imbounds)
68
- @test getprojection(tfm2, kpbounds) ≈ getprojection(ScaleRatio((1 / 2, 1 / 2)), kpbounds)
+ testprojective(tfm1)
+ testprojective(tfm2)
69
end
70
71
@@ -79,7 +76,7 @@ include("../imports.jl")
79
76
@test_nowarn apply(tfm, keypoints)
80
77
timage = apply(tfm, image)
81
78
tkeypoints = apply(tfm, keypoints)
82
- @test getbounds(timage).rs == (1:25, 1:25)
+ @test length.(getbounds(timage).rs) == (25, 25)
83
@test getbounds(timage) == getbounds(tkeypoints)
84
testprojective(tfm)
85
test/projective/crop.jl
@@ -25,6 +25,5 @@ end
25
item = Image(img)
26
tfm = ResizePadDivisible((32, 32), 4)
27
titem = apply(tfm, item)
28
- @show size(titem.data)
29
@test size(titem.data) == (32, 48)
30
0 commit comments