Pink 0.9

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|r

s cs ds} [scale] out.pgm

Description:

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

  
  e <n>       s <n>         b <n>         n <n>            B <n>            N <n>    
  x1          x1 v1         x1 y1         x1 y1 v1         x1 y1 z1         x1 y1 z1 v1
  x2    or    x2 v2   or    x2 y2   or    x2 y2 v2   or    x2 y2 z2   or    z2 x2 y2 v2
  ...         ...           ...           ...              ...              ...
  xn          xn vn         xn yn         xn yn vn         xn yn zn         zn xn yn vn

The formats e, s, b, n, B, and N, correspond respectively to binary 1D, graylevel 1D, 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 1D, 2D, 3D

Category: convert

Author:
Michel Couprie