7f5d55e309efbd0eee135ff5af520e3ddea310fb,mahotas/freeimage.py,,_array_from_bitmap,#,319
Before Change
b = array[0]
g = array[1]
r = array[2]
return np.dstack( (n(r), n(g), n(b)) )
// We need to copy because array does *not* own its memory
// after bitmap is freed.
return n(array).copy()
After Change
b = n(array[0])
g = n(array[1])
r = n(array[2])
if shape[0] == 3:
return np.dstack( (r,g,b) )
elif shape[0] == 4:
a = n(array[3])
return np.dstack( (r,g,b,a) )
else:
raise ValueError("mahotas.freeimage: cannot handle images of this shape (%s)" % shape)
// We need to copy because array does *not* own its memory
// after bitmap is freed.
return n(array).copy()
def string_tag(bitmap, key, model=METADATA_MODELS.FIMD_EXIF_MAIN):
Retrieve the value of a metadata tag with the given string key as a
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: luispedro/mahotas
Commit Name: 7f5d55e309efbd0eee135ff5af520e3ddea310fb
Time: 2010-11-12
Author: lpc@cmu.edu
File Name: mahotas/freeimage.py
Class Name:
Method Name: _array_from_bitmap
Project Name: donlnz/nonconformist
Commit Name: aab2ef03ff533c1160742fafd2bf12133e227ddb
Time: 2015-03-19
Author: henrik.linusson@gmail.com
File Name: nonconformist/ensemble.py
Class Name: AggregatedCp
Method Name: predict
Project Name: anishathalye/neural-style
Commit Name: 4bfb9efb1f0e955922889187727e33185e97d934
Time: 2016-12-09
Author: me@anishathalye.com
File Name: neural_style.py
Class Name:
Method Name: imread