These are chat archives for thunder-project/thunder
.tiffile or a sequence of files?
.tiffiles that represent a single 3D timepoint
images.squeeze()doesn't seem to remove singleton dimensions... @jwittenbach any ideas?
vid.tifand you want to load each frame individually
td.images.fromtiff(/path/to/data, nplanes = 69)
squeeze— it will drop singleton dimensions, but with some caveats
Imagesobject it special — it represents the frames, so you can never squeeze it away
nplanes = 69, it still gives the shape as
(1, 69, 480, 752)?
from tifffile import imread img = imread(/path/to/file) print(img.shape)
firston the Thunder object?
imgs = td.images.fromtif(/path/to/data, nplanes=1) print(imgs.first().shape)
matplotlib.pyplot.matshow, I think that will keep the aspect ratio at 1
imgs.first().shapewe can see that all the data is there
plt.imshow? i've never had any trouble displaying frames of video with that