A plain PGM file is a text file that holds a grey-level image: the letters P2, then the width and the height, then the largest grey level (255), then the grey level of every pixel, row after row, separated by spaces or ends of line.
Computer Science · Glossário