Hi,
here is something which bothers me for a while and I hope you might be able to help me
CZI Testfile
This is a tiles image which I want to read. Here is the minimal code
# read the czi mosaic image
czi = CziFile(filename)
# Get the shape of the data
print('Dimensions : ', czi.dims)
print('Size : ', czi.size)
print('Shape : ', czi.dims_shape())
print('IsMoasic : ', czi.is_mosaic())
print('Mosaic Size : ', czi.read_mosaic_size())
# read the mosaic pixel data
mosaic = czi.read_mosaic(C=0, scale_factor=1.0)
print('Mosaic Shape :', mosaic.shape)
What I do not understand so far is the output, where the actual size of the returner array does not have the same XY number of pixel as it should have. The value returned by czi.read_mosaic is correct and corresponds to what is shown in ZEN.
Do you have any idea where those additional pixels come from?
Dimensions : BSCMYX
Size : (1, 1, 1, 120, 440, 544)
Shape : [{'X': (0, 544), 'Y': (0, 440), 'C': (0, 1), 'M': (0, 120), 'S': (0, 1), 'B': (0, 1)}]
IsMoasic : True
Mosaic Size : (0, 0, 7398, 3212)
Mosaic Shape : (1, 3216, 7400)