Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc9e9b commit aae8eeeCopy full SHA for aae8eee
1 file changed
lib/matplotlib/image.py
@@ -691,7 +691,7 @@ def pil_to_array( pilImage ):
691
grayscale images, the return array is MxN. For RGB images, the
692
return value is MxNx3. For RGBA images the return value is MxNx4
693
"""
694
- def toarray(im)
+ def toarray(im):
695
'return a 1D array of floats'
696
x_str = im.tostring('raw',im.mode,0,-1)
697
x = np.fromstring(x_str,np.uint8)
0 commit comments