- added some type aliases

- an overridden compress_frame in a class subclassing IJTiffWrite can now write multiple frames
This commit is contained in:
Wim Pomp
2024-10-02 13:58:12 +02:00
parent ba73ae522a
commit a733d8a820
4 changed files with 21 additions and 14 deletions

View File

@@ -64,7 +64,6 @@ or
tiffwrite('file.tif', image, 'TCXY')
## Write one frame at a time
from itertools import product
from tiffwrite import IJTiffFile
import numpy as np
@@ -76,7 +75,6 @@ or
tif.save(np.random.randint(0, 10, (32, 32)), c, z, t)
## Saving multiple tiffs simultaneously
from itertools import product
from tiffwrite import IJTiffFile
import numpy as np
@@ -89,7 +87,7 @@ or
tif_b.save(np.random.randint(0, 10, (32, 32)), c, z, t)
## Tricks & tips
- The order of feeding frames to IJTiffFile is unimportant, IJTiffFile will order de ifd's such that the file will
- The order of feeding frames to IJTiffFile is unimportant, IJTiffFile will order the ifd's such that the file will
be opened as a correctly ordered hyperstack.
- Using the colormap parameter you can make ImageJ open the file and apply the colormap. colormap='glasbey' is very
useful.