PPMB Files


PPMB is the binary version of the PPM portable pixel map format. It is a simple RGB color image description. The definition is as follows:

Characters from a "#" to the next end-of-line are ignored (comments). No line should be longer than 70 characters.

There is also a variant on the format, available by setting the RAWBITS option at compile time. This variant is different in the following ways:

The files are smaller and many times faster to read and write. Note that this raw format can only be used for MAXVAL less than or equal to 255. If you use the PPM library and try to write a file with a larger MAXVAL, it will automatically fall back on the slower but more general plain format.

EXAMPLE:

        P3
        # feep.ppm
        4 4
        15
         0  0  0  0  0  0    0  0  0   15  0 15
         0  0  0  0 15  7    0  0  0    0  0  0
         0  0  0  0  0  0    0 15  7    0  0  0
        15  0 15  0  0  0    0  0  0    0  0  0
      

PPM files are:

Reference:

Programs to view a PPM file include:

Routines to read or write a PPM file:

Programs to convert a PPM file to another format:

Programs to convert a file to PPM format:

Files you may copy:

Back to the data home page.


Last revised on 14 June 2002.