I want to read 32-bit float image files with python to do some image analysis.
I have tried
import matplotlib.pyplot as plt
im = plt.imread('path_to_file.tif')
But, this only reads the data as 8-bit integer values. Is there a way to provide imread() with the right data type?
-- Well, it formerly worked out of the box with 16-bit TIFF files, but doesn't with 32-bit floats.