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_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
        
        image_before = [[0,   0,   0,   0, 0],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: aleju/imgaug
Commit Name: f22c4ebf74fd00bb8e2ec136ea9cf0f7177ebf61
Time: 2015-07-16
Author: kontakt@ajung.name
File Name: TestImageAugmenter.py
Class Name: TestImageAugmenter
Method Name: test_translation_y