Hi All,
I am working with LLSM movies as CZI files. The movies have 3 channels and are pretty large so I am using delayed image reading from the AICSImage package. The code is as follows.
I am trying to access one time point and one channel at a time. The code works perfectly with channel 2 but sort of disrupts the movie for channel 1 and 3. I have attached screenshots of the actual movie in czi format and the movie in ome.tiff format in fiji.
It also displays the dimensiosn for channel 2 and channel 1 and 3 as being different
when i run the code img.dims I get
<Dimensions [T: 130, C: 3, Z: 116, Y: 2052, X: 340]>
However when I run the code
lazy_t0 = img.get_image_dask_data(“CZYX”, T=1,C=2)
t0 = lazy_t0.compute()
t0.shape
I get Z: 114, Y:2048, X:337 (this happens only for channel 1 and 3)
The complete code is here
lazy_t0 = img.get_image_dask_data(“ZYX”, T=1,C=2)
lazy_t0.shape
t0 = lazy_t0.compute()
t0.shape
Save the array as OME-TIFF
with tifffile.TiffWriter(output_tiff_file_path, bigtiff=False) as tif:
tif.write(t0, photometric=‘minisblack’, metadata={‘axes’: ‘ZYX’})