8c75fd91577f0853b427f8f295badfefade31822,mahotas/features/texture.py,,haralick_features,#,94
Before Change
feats[13] = 0
features.append(feats)
return np.array(features)
haralick_labels = ["Angular Second Moment",
"Contrast",
After Change
feats[13] = 0
features.append(feats)
features = np.array(features)
if return_mean:
return features.mean(axis=0)
if return_mean_ptp:
mean = features.mean(axis=0)
ptp = features.ptp(axis=0)
return np.concatenate((mean,ptp))
return features
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: luispedro/mahotas
Commit Name: 8c75fd91577f0853b427f8f295badfefade31822
Time: 2015-02-15
Author: luis@luispedro.org
File Name: mahotas/features/texture.py
Class Name:
Method Name: haralick_features
Project Name: librosa/librosa
Commit Name: 2bae518e899657e536572fa59df6e1587795e397
Time: 2014-12-30
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: line_features
Project Name: luispedro/mahotas
Commit Name: 09349c5bf9eb8ebc3fdc6173b42bcfd9dac25f45
Time: 2010-11-01
Author: lpc@cmu.edu
File Name: mahotas/lbp.py
Class Name:
Method Name: lbp