Python and 16 Bit Tiff
For lossless conversion from 16 bit grayscale TIFF to PNG use PythonMagick: from PythonMagick import Image Image(‘pinei_2002300_1525_modis_ch02.tif’).write(“foo.png”)
For lossless conversion from 16 bit grayscale TIFF to PNG use PythonMagick: from PythonMagick import Image Image(‘pinei_2002300_1525_modis_ch02.tif’).write(“foo.png”)
TL;DR: 16-bit floats do exist and there are various software as well as hardware implementations There are currently 2 common standard 16-bit float formats: IEEE-754 binary16 and Google’s bfloat16. Since they’re standardized, obviously anyone who knows the spec can write an implementation. Some examples: https://github.com/ramenhut/half https://github.com/minhhn2910/cuda-half2 https://github.com/tianshilei1992/half_precision https://github.com/acgessler/half_float Or if you don’t want to use … Read more
You basically want to divide by 10, print the remainder (one digit), and then repeat with the quotient. ; assume number is in eax mov ecx, 10 loophere: mov edx, 0 div ecx ; now eax <– eax/10 ; edx <– eax % 10 ; print edx ; this is one digit, which we have … Read more