Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def __init__(self, *args, **kw):
     Lsmimage.__init__(self, *args, **kw)
     self.open()
Exemple #4
0
 def __init__(self, *args, **kw):
     Lsmimage.__init__(self, *args, **kw)
     self.open()