1b57b7477caddae61edf89ac913f4a1543270a7e,imgaug/augmenters/weather.py,CloudLayer,draw_on_image,#CloudLayer#Any#Any#,429

Before Change


        alpha = alpha[..., np.newaxis]
        intensity = intensity[..., np.newaxis]
        return np.clip(
            (1 - alpha) * image.astype(np.float64) + alpha * intensity.astype(np.float64),
            0,
            255
        ).astype(np.uint8)

After Change


            intensity = intensity.astype(image.dtype)
            return (1 - alpha) * image + alpha * intensity,
        else:
            intensity = np.clip(intensity, 0, 255)
            return np.clip(
                (1 - alpha) * image.astype(alpha.dtype) + alpha * intensity.astype(alpha.dtype),
                0,
                255
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: aleju/imgaug
Commit Name: 1b57b7477caddae61edf89ac913f4a1543270a7e
Time: 2018-12-24
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/weather.py
Class Name: CloudLayer
Method Name: draw_on_image


Project Name: scikit-video/scikit-video
Commit Name: a9f6a49ce99163d277ba04fa62496957c3e373e3
Time: 2018-06-08
Author: olivier.parmentier@gmail.com
File Name: skvideo/io/ffmpeg.py
Class Name: FFmpegWriter
Method Name: writeFrame


Project Name: scikit-video/scikit-video
Commit Name: a9f6a49ce99163d277ba04fa62496957c3e373e3
Time: 2018-06-08
Author: olivier.parmentier@gmail.com
File Name: skvideo/io/avconv.py
Class Name: LibAVWriter
Method Name: writeFrame