@TaskGenerator
def compute_texture(im):
 from features import texture
 imc = mh.imread(im)
 return texture(mh.colors.rgb2grey(imc))

@ TaskGenerator def compute_texture ( im ) : from features import texture imc = mh . imread ( im ) return texture ( mh . colors . rgb2grey ( imc ) )
compute features for an image parameters im : str filepath for image to process returns fs : ndarray 1-d array of features .