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

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

matplotlib - PYTHON: Annotate boxes disapear dependant on range -