19261b555cec742d34a412e8b0d92d86ffee0e81,mahotas/tests/utils.py,,luispedro_jpg,#Any#,2

Before Change

import mahotas as mh
def luispedro_jpg(as_grey=False):
    from os import path
    return mh.imread(path.join(
        path.abspath(path.dirname(__file__)),
                "..",
                "demos",
                "data",
                "luispedro.jpg"), as_grey=as_grey)

After Change


                "luispedro.npy")
    im = np.load(path)
    if as_grey:
        transform = np.array([0.30, 0.59, 0.11])
        return np.dot(im, transform)
    return im
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: luispedro/mahotas
Commit Name: 19261b555cec742d34a412e8b0d92d86ffee0e81
Time: 2013-05-07
Author: luis@luispedro.org
File Name: mahotas/tests/utils.py
Class Name:
Method Name: luispedro_jpg


Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/LR_dataset.py
Class Name: LRDataset
Method Name: __getitem__


Project Name: dmbee/seglearn
Commit Name: f15e6db393d3ed6ddca47669ac5a8c4b332ddd2c
Time: 2020-03-31
Author: david.mo.burns@gmail.com
File Name: examples/plot_feature_rep.py
Class Name:
Method Name: