I have an 8bit tiff file, that I open using tifffile like this
import tifffile as tiff
a=tiff.imread(path_to_file)
However, a.dtype
then returns dtype('uint16')
, i.e. it seems to have converted it into a 16bit file. I couldn't find an options that one could pass to imread that would prevent this. Is it possible to read the file into a numpy array without having the type changed?