b5c563a90f07c86b6939aad71e9506020f8b4eb6,imgaug/augmenters/pillike.py,,_filter_by_kernel,#Any#Any#,731

Before Change



// Added in 0.4.0.
def _filter_by_kernel(image, kernel):
    assert image.dtype.name == "uint8", (
        "Can apply PIL filters only to uint8 images, "
        "got dtype %s." % (image.dtype.name,))

    if 0 in image.shape:
        return np.copy(image)

After Change



// Added in 0.4.0.
def _filter_by_kernel(image, kernel):
    iadt.allow_only_uint8({image.dtype})

    if 0 in image.shape:
        return np.copy(image)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: _filter_by_kernel


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: warp_affine


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: equalize_


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: autocontrast


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: _apply_enhance_func