def get_image(self, *args, **kw): image = Lsmimage.get_image(self, *args, **kw) # pylsm does not get the strides right byteoffset = self.bitdepth/8 image.strides = (byteoffset, image.shape[0]*byteoffset) return image.swapaxes(0, 1)
def get_image(self, *args, **kw): image = Lsmimage.get_image(self, *args, **kw) # pylsm does not get the strides right byteoffset = self.bitdepth / 8 image.strides = (byteoffset, image.shape[0] * byteoffset) return image.swapaxes(0, 1)
def __init__(self, *args, **kw): Lsmimage.__init__(self, *args, **kw) self.open()