PPMTORGB3
NAME
ppmtorgb3 - separate a portable pixmap into three portable graymaps
SYNOPSIS
ppmtorgb3 [ppmfile]
DESCRIPTION
Reads a portable pixmap as input. Writes three portable graymaps as
output, one each for red, green, and blue.
The output filenames are constructed by taking the input filename,
stripping off any extension, and appending ".red", ".grn", and ".blu".
For example, separating lenna.ppm would result in lenna.red,
lenna.grn, and lenna.blu. If the input comes from stdin, the names
are noname.red, noname.grn, and noname.blu.
DEMONSTRATION
Let a.ppm be a portable pixmap.
The following command will generate three greymaps (for red, green
and blue):
ppmmerge ppmtorgb3 a.ppm
The greymaps generated are a.red, a.grn and a.blu.
BEFORE

AFTER
red:
green:
blue:
SEE ALSO
rgb3toppm(1), ppmtopgm(1), pgmtoppm(1), ppm(5), pgm(5)
AUTHOR
Copyright (C) 1991 by Jef Poskanzer.