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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -