50ad5851edd83940e72b8bbd3e8e4a6acbc7b445,mathics/builtin/image.py,Blur,apply,#Blur#Any#Any#Any#,749
Before Change
def apply(self, image, r, evaluation):
"Blur[image_Image, r_?RealNumberQ]"
return Image(numpy.array(image.pil().filter(
PIL.ImageFilter.GaussianBlur(r.to_python()))), image.color_space)
class Sharpen(_ImageBuiltin):
rules = {
After Change
def apply(self, image, r, evaluation):
"Blur[image_Image, r_?RealNumberQ]"
f = PIL.ImageFilter.GaussianBlur(r.round_to_float())
return image.filter(lambda im: im.filter(f))
class Sharpen(_ImageBuiltin):
rules = {
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: Blur
Method Name: apply
Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: Sharpen
Method Name: apply
Project Name: mathics/Mathics
Commit Name: 50ad5851edd83940e72b8bbd3e8e4a6acbc7b445
Time: 2016-09-15
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: PillowImageFilter
Method Name: compute