09349c5bf9eb8ebc3fdc6173b42bcfd9dac25f45,mahotas/lbp.py,,lbp,#,38
Before Change
points = map_coordinates(image, coordinates.reshape((2,-1)), order=1).reshape((image.size, -1))
codes = (points.T > image.ravel()).sum(0)
codes = mahotas._lbp.map(codes.astype(np.uint32), 8)
return fullhistogram(codes)
After Change
mahotas._lbp.map(codes.astype(np.uint32), points)
final = fullhistogram(codes.astype(np.uint32))
codes = np.arange(2**points, dtype=np.uint32)
iters = codes.copy()
mahotas._lbp.map(codes.astype(np.uint32), points)
pivots = (codes == iters)
npivots = np.sum(pivots)
compressed = final[pivots[:len(final)]]
compressed = np.concatenate((compressed, [0]*(npivots - len(compressed))))
return compressed
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
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
Project Name: explosion/spaCy
Commit Name: 7c05ca01e80ee0f73d703c986f99bc72c0270719
Time: 2019-03-11
Author: ines@ines.io
File Name: spacy/tokens/underscore.py
Class Name: Underscore
Method Name: __getattr__
Project Name: cesium-ml/cesium
Commit Name: 09bfc1b3ef8494cf17a192bbe83df576ccdac86f
Time: 2016-06-29
Author: brettnaul@gmail.com
File Name: cesium/predict.py
Class Name:
Method Name: model_predictions
Project Name: masa-su/pixyz
Commit Name: 30028c6256de0cef715095e3994e396025c068d4
Time: 2020-05-04
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/flow_distribution.py
Class Name: TransformedDistribution
Method Name: sample
Project Name: masa-su/pixyz
Commit Name: 30028c6256de0cef715095e3994e396025c068d4
Time: 2020-05-04
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/flow_distribution.py
Class Name: InverseTransformedDistribution
Method Name: sample
Project Name: pgmpy/pgmpy
Commit Name: 0ff5063d229ec9b98dea88d9e0d096bb63870b9a
Time: 2015-08-21
Author: ankurankan@gmail.com
File Name: pgmpy/factors/FactorSet.py
Class Name: FactorSet
Method Name: product