예제 #1
0
 def test_rotate_array_90_and_180(self):
     img = _get_image()
     rotated_image1 = transform_utils.rotate_array_90(img)
     rotated_image1 = transform_utils.rotate_array_90(rotated_image1)
     rotated_image2 = transform_utils.rotate_array_180(img)
     self.assertAllEqual(rotated_image1, rotated_image2)
예제 #2
0
 def test_rotate_array_90(self):
     img = _get_image()
     rotated_image = transform_utils.rotate_array_90(img)
     expected_image = np.rot90(img)
     self.assertAllEqual(rotated_image, expected_image)