Closed igorpisarev closed 4 years ago
Fixed in #22 without remapping the values. Instead, the converter tries to directly write the input values into the most suitable output type. If the values are out of the valid range (for example, uint64 values can easily be outside the range 0-65535), the converter will fail. But this should be sufficient for most cases.
Conversion to slice TIFF is done using ImageJ toolkit, so the only supported types are uint8, uint16, and float32. Attempting to convert a uint64 dataset produces the following error:
A possible solution could be to save as uint16 TIFF, which should be sufficient in most cases. If the value range is beyond uint16, most likely the label IDs are sparse, so in this case the value range can be remapped to
1..N
.