Main Page   Modules   File List  

list2pgm.c File Reference

converts from point list representation to pgm More...


Detailed Description

converts from point list representation to pgm

Usage: list2pgm in.list <in.pgm|rs cs ds> [scale] out.pgm

Description:

Reads the file in.list. This file must have one of the following formats:

 
    b <m>         n <m>            B <m>            N <m> 
    x1 y1         x1 y1 v1         x1 y1 z1         x1 y1 z1 v1
    x2 y2   or    x2 y2 v2   or    x2 y2 z2   or    z2 x2 y2 v2
    ...           ...              ...              ...
    xm ym         xm ym vm         xm ym z3         z3 xm ym vm
The formats b, n, B, and N, correspond respectively to binary 2D, graylevel 2D, binary 3D and graylevel 3D images. If a file name in.pgm is given, then the points read in in.list are inserted (if possible) into the image read in in.pgm. Else, they are inserted in a new image, the dimensions of which are rs, cs, and d.

The optional parameter scale allows to scale the coordinates.

Types supported: list 2D, 3D

Category: convert

Author:
Michel Couprie

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