f22c4ebf74fd00bb8e2ec136ea9cf0f7177ebf61,TestImageAugmenter.py,TestImageAugmenter,test_single_channel,#TestImageAugmenter#,169

Before Change


        one_similar = False
        for _ in range(100):
            image_after = ia.augment_batch(images)[0]
            if np.allclose(image_target, image_after):
                one_similar = True
                break
        self.assertTrue(one_similar)
    
    def test_two_channels(self):
        Tests augmentation of images with two channels (either first or last

After Change


        // all must be similar
        for _ in range(100):
            image_after = ia.augment_batch(images)[0]
            self.assertTrue(np.allclose(image_target, image_after))
    
    def test_two_channels(self):
        Tests augmentation of images with two channels (either first or last
        axis of each image). Tested using x-translation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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: 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_translation_y