Remove unneeded code.

This commit is contained in:
Andrey Golovizin 2014-08-25 16:36:44 +02:00
parent ead1751ed1
commit 6a3f8b3143

View file

@ -179,7 +179,7 @@ class Image(object):
def toqimage(self):
from PyQt4.QtGui import QImage
return QImage(
np.ascontiguousarray(self.data.astype(np.uint8)).data,
self.data.astype(np.uint8).data,
self.data.shape[1], self.data.shape[0],
self.data.shape[1] * 3,
QImage.Format_RGB888,