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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -