6bf45c9c15ce031fb7cd113ba0f7560082a0cede,tests/test_functional.py,,test_rotate_from_shift_scale_rotate,#Any#,201
Before Change
[4, 8, 12, 16],
[3, 7, 11, 15],
[2, 6, 10, 14]], dtype=np.uint8)
if target == "image":
img = convert_2d_to_3d(img)
expected = convert_2d_to_3d(expected)
rotated_img = F.shift_scale_rotate(img, angle=90, scale=1, dx=0, dy=0, interpolation=cv2.INTER_NEAREST,
border_mode=cv2.BORDER_CONSTANT)
assert np.array_equal(rotated_img, expected)
After Change
[4, 8, 12, 16],
[3, 7, 11, 15],
[2, 6, 10, 14]], dtype=np.uint8)
img, expected = convert_2d_to_target_format([img, expected], target=target)
rotated_img = F.shift_scale_rotate(img, angle=90, scale=1, dx=0, dy=0, interpolation=cv2.INTER_NEAREST,
border_mode=cv2.BORDER_CONSTANT)
assert np.array_equal(rotated_img, expected)
In pattern: SUPERPATTERN
Frequency: 10
Non-data size: 10
Instances
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_rotate_from_shift_scale_rotate
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_pad
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_scale_from_shift_scale_rotate
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_vflip
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_hflip
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_center_crop
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_shift_x_from_shift_scale_rotate
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_rot90
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_rotate_from_shift_scale_rotate
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_shift_y_from_shift_scale_rotate
Project Name: albu/albumentations
Commit Name: 6bf45c9c15ce031fb7cd113ba0f7560082a0cede
Time: 2018-07-21
Author: creafz@gmail.com
File Name: tests/test_functional.py
Class Name:
Method Name: test_random_crop