Opening an 8-bit image written to hdf5 with the fiji plugin under Plugins > BigDataViewer > Export Current Image as XML/HDF5 like so:
SpimData spimData = new XmlIoSpimData().load( xmlPath )
BdvFunctions.show(spimData)
gives UnsignedShortType (16-bit) imgLoaders inside, rather than UnsignedByteType (8-bit). This is not the case for converting and loading n5 via 'Export Current Image as XML/N5'.
Opening an 8-bit image written to hdf5 with the fiji plugin under Plugins > BigDataViewer > Export Current Image as XML/HDF5 like so:
gives UnsignedShortType (16-bit) imgLoaders inside, rather than UnsignedByteType (8-bit). This is not the case for converting and loading n5 via 'Export Current Image as XML/N5'.
Would it be possible to change this part: https://github.com/bigdataviewer/bigdataviewer-core/blob/master/src/main/java/bdv/img/hdf5/Hdf5ImageLoader.java#L378 to be more like the n5 equivalent https://github.com/bigdataviewer/bigdataviewer-core/blob/master/src/main/java/bdv/img/n5/N5ImageLoader.java#L200? This would make the images easier to handle in any downstream processing.