Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle NaNs when clipping in
transform.resize
(#6852)
resize(img, clip=True, ...) didn't account for NaN in the image when computing the image bounds. This can be achieved by simply doing what the `warp` function does, by passing it to `_clip_warp_output`. Co-authored-by: Lars Grüter <lagru+github@mailbox.org>
- Loading branch information
Showing
2 changed files
with
9 additions
and
8 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