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 - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -

Receive udp packets in android gstreamer -