1408b93e1615270242db7c92b8a7a2ab8289f787,TestImageAugmenter.py,TestImageAugmenter,test_scaling,#TestImageAugmenter#,48
Before Change
for _ in range(1000):
image_after = ia.augment_batch(images)[0]
//misc.imshow(image_after)
if np.allclose(image_target, image_after):
one_similar = True
break
self.assertTrue(one_similar)
def test_shear(self):
Very rough test of shear: It simply measures whether an image tends
After Change
size_x = 4
size_y = 4
image_before = np.zeros((size_x,size_y))
image_before[1:size_x-1, 1:size_y-1] = 255
image_target = np.zeros((size_x,size_y))
image_target[0:size_x, 0:size_y] = 1.0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: aleju/imgaug
Commit Name: 1408b93e1615270242db7c92b8a7a2ab8289f787
Time: 2015-07-10
Author: kontakt@ajung.name
File Name: TestImageAugmenter.py
Class Name: TestImageAugmenter
Method Name: test_scaling
Project Name: aleju/imgaug
Commit Name: f22c4ebf74fd00bb8e2ec136ea9cf0f7177ebf61
Time: 2015-07-16
Author: kontakt@ajung.name
File Name: TestImageAugmenter.py
Class Name: TestImageAugmenter
Method Name: test_single_channel
Project Name: geomstats/geomstats
Commit Name: f2923023825046cfc16e05190796914215b9ee12
Time: 2018-09-18
Author: alice.le-brigant@enac.fr
File Name: tests/test_hypersphere.py
Class Name: TestHypersphereMethods
Method Name: test_closest_neighbor