ImageItem fix against a51c30d
This commit is contained in:
parent
fd4ae73b17
commit
b3e07a0e0a
@ -310,8 +310,8 @@ class ImageItem(GraphicsObject):
|
|||||||
if self.image is None:
|
if self.image is None:
|
||||||
return None,None
|
return None,None
|
||||||
if step == 'auto':
|
if step == 'auto':
|
||||||
step = (np.ceil(self.image.shape[0] / targetSize),
|
step = (np.ceil(self.image.shape[0] / targetImageSize),
|
||||||
np.ceil(self.image.shape[1] / targetSize))
|
np.ceil(self.image.shape[1] / targetImageSize))
|
||||||
if np.isscalar(step):
|
if np.isscalar(step):
|
||||||
step = (step, step)
|
step = (step, step)
|
||||||
stepData = self.image[::step[0], ::step[1]]
|
stepData = self.image[::step[0], ::step[1]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user