---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-23-c42c1cd6cdd6> in <module>()
----> 1 plt.imshow(img)
/Users/Tony/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.pyc in imshow(X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, hold, data, **kwargs)
3020 filternorm=filternorm, filterrad=filterrad,
3021 imlim=imlim, resample=resample, url=url, data=data,
-> 3022 **kwargs)
3023 finally:
3024 ax.hold(washold)
/Users/Tony/anaconda/lib/python2.7/site-packages/matplotlib/__init__.pyc in inner(ax, *args, **kwargs)
1810 warnings.warn(msg % (label_namer, func.__name__),
1811 RuntimeWarning, stacklevel=2)
-> 1812 return func(ax, *args, **kwargs)
1813 pre_doc = inner.__doc__
1814 if pre_doc is None:
/Users/Tony/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.pyc in imshow(self, X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, **kwargs)
4945 resample=resample, **kwargs)
4946
-> 4947 im.set_data(X)
4948 im.set_alpha(alpha)
4949 if im.get_clip_path() is None:
/Users/Tony/anaconda/lib/python2.7/site-packages/matplotlib/image.pyc in set_data(self, A)
447 if (self._A.dtype != np.uint8 and
448 not np.can_cast(self._A.dtype, np.float)):
--> 449 raise TypeError("Image data can not convert to float")
450
451 if (self._A.ndim not in (2, 3) or
TypeError: Image data can not convert to float