Closed falkben closed 6 years ago
scikit-image io.imread function expects a string for the filename input. It uses that string to determine if the file is a TIFF file, and if it is, it uses the tifffile package instead of PILLOW. PILLOW does not support uint64 TIFFs.
when loading images a Path object is used instead of a String, which for uint64 tiff files, causes an exception. https://github.com/HumanBrainProject/neuroglancer-scripts/blob/master/src/neuroglancer_scripts/scripts/slices_to_precomputed.py#L142-L143
If you replace the above lines with the following, uint64 images load correctly in scikit-image:
block = skimage.io.concatenate_images( map(skimage.io.imread, [str(f) for f in slice_filenames[slice_slicing]]))
scikit-image io.imread function expects a string for the filename input. It uses that string to determine if the file is a TIFF file, and if it is, it uses the tifffile package instead of PILLOW. PILLOW does not support uint64 TIFFs.
when loading images a Path object is used instead of a String, which for uint64 tiff files, causes an exception. https://github.com/HumanBrainProject/neuroglancer-scripts/blob/master/src/neuroglancer_scripts/scripts/slices_to_precomputed.py#L142-L143
If you replace the above lines with the following, uint64 images load correctly in scikit-image: