invalid slice fix

This commit is contained in:
fedebarabas 2015-09-04 19:21:38 -03:00
parent 1036edf618
commit ab1051f494

View File

@ -347,8 +347,8 @@ class ImageItem(GraphicsObject):
if self.image is None:
return None,None
if step == 'auto':
step = (np.ceil(self.image.shape[0] / targetImageSize),
np.ceil(self.image.shape[1] / targetImageSize))
step = (int(np.ceil(self.image.shape[0] / targetImageSize)),
int(np.ceil(self.image.shape[1] / targetImageSize)))
if np.isscalar(step):
step = (step, step)
stepData = self.image[::step[0], ::step[1]]