Open hanslovsky opened 5 years ago
Could be an bug upstream, either in the Java bindings or the hdf library itself.
Note that this compression is lossless if scalineFactor >= ceil(log2(max(values) - min(values) + 1). This in made sure when using INT_AUTO_SCALING, thus INT_AUTO_SCALING is always losless.
Nevertheless, I changed the code to use INT_AUTO_SCALING_UNSIGNED for unsigned types which sounds better although I do not understand the difference https://github.com/saalfeldlab/n5-hdf5/commit/a7b3735da5bda559e33982e8e2c3309b44a1250f .
Create a dataset like this (kotlin):
Look at dataset info using
h5dump
:Scale-offset is lossy compression and the hdf5 library seems to have a memory leak when the parameter is set (see also https://github.com/h5py/h5py/issues/984)