19261b555cec742d34a412e8b0d92d86ffee0e81,mahotas/tests/utils.py,,luispedro_jpg,#,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
if as_grey:
transform = np.array([0.30, 0.59, 0.11])
return np.dot(im, transform)
return im
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: ClementPinard/FlowNetPytorch
Commit Name: 6c3a117b9b39fd7f993c85091f7a1a0d96d10d08
Time: 2018-01-29
Author: clement.pinard@parrot.com
File Name: datasets/KITTI.py
Class Name:
Method Name: load_flow_from_png
Project Name: luispedro/mahotas
Commit Name: 2bbe05e25803463a65353ff7dfe6551dcc396ea9
Time: 2013-10-11
Author: luis@luispedro.org
File Name: mahotas/demos/__init__.py
Class Name:
Method Name: nuclear_image