Skip to content

Commit c816368

Browse files
committed
Fix crop-projective composition
Fixes a bug where composing a `CroppedProjectiveTransform` with another `ProjectiveTransform` would cause the cropping to be skipped. Now, this instead creates a `Sequence` meaning the crop is properly applied; however, the last projection is not fused with that before the crop.
1 parent 9591121 commit c816368

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/projective/crop.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ function compose(composed::ComposedProjectiveTransform, cropped::CroppedProjecti
101101

102102
end
103103

104+
function compose(cropped::CroppedProjectiveTransform, projective::ProjectiveTransform)
105+
return Sequence(cropped, projective)
106+
end
107+
104108

105109
"""
106110
offsetcropbounds(sz, bounds, offsets)

0 commit comments

Comments
 (0)