@@ -76,6 +76,7 @@ include("../imports.jl")
7676 @test_nowarn apply (tfm, keypoints)
7777 timage = apply (tfm, image)
7878 tkeypoints = apply (tfm, keypoints)
79+ @test ! any (isnan .(timage |> itemdata))
7980 @test length .(getbounds (timage). rs) == (25 , 25 )
8081 @test getbounds (timage) == getbounds (tkeypoints)
8182 testprojective (tfm)
@@ -87,7 +88,8 @@ include("../imports.jl")
8788 @test_nowarn apply (tfm, keypoints)
8889 timage = apply (tfm, image)
8990 tkeypoints = apply (tfm, keypoints)
90- @test getbounds (timage). rs == (0 : 25 , 0 : 25 )
91+ @test ! any (isnan .(timage |> itemdata))
92+ @test getbounds (timage). rs == (2 : 26 , 2 : 26 )
9193 @test getbounds (timage) == getbounds (tkeypoints)
9294 testprojective (tfm)
9395 end
@@ -96,10 +98,14 @@ include("../imports.jl")
9698 tfm = ScaleKeepAspect ((32 , 32 ))
9799
98100 img = rand (RGB{N0f8}, 64 , 96 )
99- @test apply (tfm, Image (img)) |> itemdata |> size == (32 , 48 )
101+ timg = apply (tfm, Image (img)) |> itemdata
102+ @test timg |> size == (32 , 48 )
103+ @test ! any (isnan .(timg))
100104
101105 img = rand (RGB{N0f8}, 196 , 196 )
102- @test apply (tfm, Image (img)) |> itemdata |> size == (32 , 32 )
106+ timg = apply (tfm, Image (img)) |> itemdata
107+ @test timg |> size == (32 , 32 )
108+ @test ! any (isnan .(timg))
103109 end
104110 end
105111
0 commit comments