b5c563a90f07c86b6939aad71e9506020f8b4eb6,imgaug/augmenters/convolutional.py,,convolve_,#Any#Any#,58

Before Change


        Might have been modified in-place.

    
    iadt.gate_dtypes(
        image,
        allowed=["bool",
                 "uint8", "uint16",
                 "int8", "int16",
                 "float16", "float32", "float64"],
        disallowed=["uint32", "uint64", "uint128", "uint256",
                    "int32", "int64", "int128", "int256",
                    "float96", "float128", "float256"],
        augmenter=None
    )

    // currently we don"t have to worry here about alignemnt with
    // non-image data and therefore can just place this before any
    // sampling

After Change



    if input_dtype.kind == "b":
        image = image > 0.5
    elif input_dtype in {iadt._INT8_DTYPE, iadt._FLOAT16_DTYPE}:
        image = iadt.restore_dtypes_(image, input_dtype)

    if len(input_shape) == 3 and image.ndim == 2:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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


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