diff --git a/src/projective/crop.jl b/src/projective/crop.jl index c24ecab..c009ac6 100644 --- a/src/projective/crop.jl +++ b/src/projective/crop.jl @@ -101,6 +101,10 @@ function compose(composed::ComposedProjectiveTransform, cropped::CroppedProjecti end +function compose(cropped::CroppedProjectiveTransform, projective::ProjectiveTransform) + return Sequence(cropped, projective) +end + """ offsetcropbounds(sz, bounds, offsets) diff --git a/test/projective/affine.jl b/test/projective/affine.jl index 9efc780..a8c0ae0 100644 --- a/test/projective/affine.jl +++ b/test/projective/affine.jl @@ -157,11 +157,12 @@ end @testset ExtendedTestSet "2D" begin tfms = compose( Rotate(10), - FlipX(), FlipY(), + FlipX(), + FlipY(), ScaleRatio((.8, .8)), - RandomCrop((10, 10)), WarpAffine(0.1), - Zoom((1., 1.2)) + Zoom((1., 1.2)), + RandomCrop((10, 10)), ) testprojective(tfms) end