b5c563a90f07c86b6939aad71e9506020f8b4eb6,imgaug/augmenters/pillike.py,,autocontrast,#Any#Any#Any#,365

Before Change


        Contrast-enhanced image.

    
    assert image.dtype.name == "uint8", (
        "Can apply autocontrast only to uint8 images, got dtype %s." % (
            image.dtype.name,))

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

After Change


        Contrast-enhanced image.

    
    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: 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: 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: _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: _apply_enhance_func


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_