Why does the 16bit PPM/PGM images looks so noisy, if I use a different program

Because there is no standard about 16 bit binary PPM's / PGM's and some programs save and expect the data in big-endian byte order and some in little-endian byte order. If an image is read in with the wrong byte oder, it looks noisy.

By default SImg uses little-endian byte order. This behaviour can be changed by Setting the environment variable SImg_PNMLE=0.

See also: PNM family

If you search for a widely distributed, flexible and well standardized ≥16bit image format, consider the FITS format.

faqs/ppm_endian.txt · Last modified: 2010/03/08 09:51 (external edit)
Recent changes RSS feed Creative Commons License Powered by PHP Debian Driven by DokuWiki