Remove unneeded code.
This commit is contained in:
parent
ead1751ed1
commit
6a3f8b3143
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ class Image(object):
|
||||||
def toqimage(self):
|
def toqimage(self):
|
||||||
from PyQt4.QtGui import QImage
|
from PyQt4.QtGui import QImage
|
||||||
return 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], self.data.shape[0],
|
||||||
self.data.shape[1] * 3,
|
self.data.shape[1] * 3,
|
||||||
QImage.Format_RGB888,
|
QImage.Format_RGB888,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue