53d483264c15a1633e6c9590ea4fe07b6640bbf5,imgaug/augmenters/pillike.py,,_filter_by_kernel,#Any#Any#,678
Before Change
image_filtered = image_pil.filter(kernel)
// don"t return np.asarray(...) as its results are read-only
return np.array(image_filtered)
def filter_blur(image):
Apply a blur filter kernel to the image.
After Change
if 0 in image.shape:
return np.copy(image)
image, is_hw1 = _ensure_valid_shape(
image, "imgaug.augmenters.pillike.filter_*()")
image_pil = PIL.Image.fromarray(image)
image_filtered = image_pil.filter(kernel)
// don"t return np.asarray(...) as its results are read-only
result = np.array(image_filtered)
if is_hw1:
result = result[:, :, np.newaxis]
return result
def filter_blur(image):
Apply a blur filter kernel to the image.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances Project Name: aleju/imgaug
Commit Name: 53d483264c15a1633e6c9590ea4fe07b6640bbf5
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: _filter_by_kernel
Project Name: aleju/imgaug
Commit Name: 53d483264c15a1633e6c9590ea4fe07b6640bbf5
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: _apply_enhance_func
Project Name: aleju/imgaug
Commit Name: 53d483264c15a1633e6c9590ea4fe07b6640bbf5
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: warp_affine
Project Name: aleju/imgaug
Commit Name: 53d483264c15a1633e6c9590ea4fe07b6640bbf5
Time: 2020-01-07
Author: kontakt@ajung.name
File Name: imgaug/augmenters/pillike.py
Class Name:
Method Name: _filter_by_kernel