da735616b83af99dc3a16edee3055527e379d93d,mathics/builtin/image.py,RandomImage,apply,#RandomImage#Any#Any#Any#Any#Any#,234

Before Change


            return Image((numpy.random.rand(h.to_python(), w.to_python()) * (x1 - x0) + x0), "Grayscale")
        except:
            import sys
            return String(repr(sys.exc_info()))

// simple image manipulation

class ImageResize(Builtin):

After Change


            return evaluation.message("RandomImage", "bddim", from_python(size))
        minrange, maxrange = minval.get_real_value(), maxval.get_real_value()
        data = numpy.random.rand(size[1], size[0]) * (maxrange - minrange) + minrange
        return Image(data, "Grayscale")


// simple image manipulation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mathics/Mathics
Commit Name: da735616b83af99dc3a16edee3055527e379d93d
Time: 2016-08-16
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/image.py
Class Name: RandomImage
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 7a629259a1c42ee25eae800f1968418b05d503ba
Time: 2016-08-16
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: ImageAdjust
Method Name: apply_auto


Project Name: mathics/Mathics
Commit Name: 7a629259a1c42ee25eae800f1968418b05d503ba
Time: 2016-08-16
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/image.py
Class Name: ImageAdd
Method Name: apply