You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
could it be that this does not work well for floating point data?
Could we add an option to the addImage for a conversion to uint8 ?
I guess for this one would need an array conversion_min_max[ 2 ], which would then be used for linear conversion:
min = conversion_min_max[ 0 ]
max = conversion_min_max[ 1 ]
value_unit8 = 255 * ( value - min ) / ( max - mix )
I am asking, because I am dealing with a floating point dataset and I have a feeling that it is much slower to load than from a unit8 dataset that is of comparable size, chunking and dimensions. Of course they are not the same, so I am not sure.
Maybe I could first try to "manually" convert the float to unit8 and see if that indeed helps.
The text was updated successfully, but these errors were encountered:
It should use the default compression for zarr-python, which I think is blosc + lz4. You can check on the details in the .zarray file.
In general: how well compression works depends on the distribution of intensity values in the data. EM has a fairly even distribution between min and max (typically [0, 255]). So yes, it is expected that it does not compress well.
@constantinpape
Could we add an option to the
addImage
for a conversion touint8
?I guess for this one would need an array
conversion_min_max[ 2 ]
, which would then be used for linear conversion:I am asking, because I am dealing with a floating point dataset and I have a feeling that it is much slower to load than from a unit8 dataset that is of comparable size, chunking and dimensions. Of course they are not the same, so I am not sure.
Maybe I could first try to "manually" convert the float to unit8 and see if that indeed helps.
The text was updated successfully, but these errors were encountered: