forked from facebookresearch/detectron2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
crop
option in RotationTransform
The `crop` option in the `RotationTransform` and `RandomRotation` transformations can be used to crop the rotated image to the largest possible axis-aligned rectangle with a maximal area within the rotated image. It's disabled by default to ensure backwards compatibility.
- Loading branch information
1 parent
bb9f5d8
commit 8b39590
Showing
3 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters