50ad5851edd83940e72b8bbd3e8e4a6acbc7b445,mathics/builtin/image.py,ColorNegate,apply,#ColorNegate#Any#Any#,1039
Before Change
class ColorNegate(_ImageBuiltin):
def apply(self, image, evaluation):
"ColorNegate[image_Image]"
pixels = image.pixels
anchor = numpy.ndarray(pixels.shape, dtype=pixels.dtype)
anchor.fill(skimage.dtype_limits(pixels)[1])
return Image(anchor - pixels, image.color_space)
class ColorSeparate(_ImageBuiltin):
def apply(self, image, evaluation):
After Change
class ColorNegate(_ImageBuiltin):
def apply(self, image, evaluation):
"ColorNegate[image_Image]"
return image.filter(lambda im: PIL.ImageOps.invert(im))
class ColorSeparate(_ImageBuiltin):
def apply(self, image, evaluation):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: ColorNegate
Method Name: apply
Project Name: comic/grand-challenge.org
Commit Name: 0e487f2ec0178c508c5e4e5a1e556bbafbeeed07
Time: 2018-08-02
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/challenges/views.py
Class Name: ChallengeList
Method Name: get_queryset
Project Name: pfnet/optuna
Commit Name: 7bae3828c7149d6d2a409c1236f25f699be92b66
Time: 2018-03-13
Author: sano@preferred.jp
File Name: pfnopt/storage/rdb.py
Class Name: RDBStorage
Method Name: get_all_trials