"vscode:/vscode.git/clone" did not exist on "14d4e4a7753f227577b6807dec41947ddc53d977"
Unverified Commit e405f3c3 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Make rotate_image_tensor's results fully BC with v1 (#7271)

parent 8f198e53
......@@ -832,8 +832,8 @@ def rotate_image_tensor(
center_f = [0.0, 0.0]
if center is not None:
if expand:
# TODO: Do we actually want to warn, or just document this?
warnings.warn("The provided center argument has no effect on the result if expand is True")
else:
# Center values should be in pixel coordinates but translated such that (0, 0) corresponds to image center.
center_f = [(c - s * 0.5) for c, s in zip(center, [width, height])]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment