@@ -77,7 +77,7 @@ include("../imports.jl")
7777 timage = apply (tfm, image)
7878 tkeypoints = apply (tfm, keypoints)
7979 @test ! any (isnan .(timage |> itemdata))
80- @test length .( getbounds (timage). rs) == (25 , 25 )
80+ @test getbounds (timage). rs == (1 : 25 , 1 : 25 )
8181 @test getbounds (timage) == getbounds (tkeypoints)
8282 testprojective (tfm)
8383
@@ -97,7 +97,6 @@ include("../imports.jl")
9797
9898 @testset ExtendedTestSet " ScaleRatioTwice" begin
9999 tfm = ScaleRatio ((4 / 5 , 4 / 5 )) |> ScaleRatio ((1 / 2 , 1 / 2 ))
100- @show getbounds (image). rs
101100 @test_nowarn apply (tfm, image)
102101 @test_nowarn apply (tfm, keypoints)
103102 timage = apply (tfm, image)
@@ -113,14 +112,14 @@ include("../imports.jl")
113112
114113 img = rand (RGB{N0f8}, 64 , 96 )
115114 timg = apply (tfm, Image (img)) |> itemdata
116- @test timg |> size == ( 32 , 48 )
117- @test ! any ( isnan .( timg))
118-
115+ timg = apply (tfm, Image (img) )
116+ @test getbounds ( timg). rs == ( 1 : 32 , 1 : 48 )
117+ @test ! any ( isnan .(timg |> itemdata))
119118 img = rand (RGB{N0f8}, 196 , 196 )
120119 timg = apply (tfm, Image (img)) |> itemdata
121- @test timg |> size == ( 32 , 32 )
122- @test ! any ( isnan .( timg))
123- end
120+ timg = apply (tfm, Image (img) )
121+ @test getbounds ( timg). rs == ( 1 : 32 , 1 : 32 )
122+ @test ! any ( isnan .(timg |> itemdata))
124123 end
125124
126125 @testset ExtendedTestSet " Rotate" begin
0 commit comments