python - Float Tiff image to numpy array -
i have problem have float image (*.tif) values 0-1 , want use in python program numpy array. every module i've found far capable of reading .tif converts uint8 comes information loss.
for large tiff images can try use rasterio library geospatial data.
with rasterio.open('/path/to/your/image.tif) src: bands = src.read()
the data type inferred input image.
Comments
Post a Comment