Main Page   Modules   File List  

pgm2ppm.c File Reference

constructs a ppm color image from 3 pgm grayscale image or from a pgm image and a lookup table More...


Detailed Description

constructs a ppm color image from 3 pgm grayscale image or from a pgm image and a lookup table

Usage: pgm2ppm <r.pgm g.pgm b.pgm|in.pgm in.lut> out.ppm

Description: 1st mode (3 arguments): combines three grayscale images: r.pgm, g.pgm and b.pgm as the red, green and blue color planes of the color image out.ppm

2nd mode (2 arguments): generates a color ppm image from the image in.pgm and the lookup table in.lut

A lookup table is represented by a special ppm image with 1 row.

Types supported: byte 2d

Category: convert

Author:
Michel Couprie

Generated on Fri Dec 17 11:59:38 2004 for Pink by doxygen1.2.18