Pink 0.9

pgm2list.c File Reference

converts from pgm format to list format More...


Detailed Description

converts from pgm format to list format

Usage: pgm2list image.pgm {e|s|b|n|B|N} out.list

Description: Converts from pgm format to list format:

In formats e, b and B, only the points with non-null values are considered.

In formats s, n and N, all the points (even those having a null value) are considered.

Summary of list 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 z3         z3 xn yn vn

Types supported: byte 2D, byte 3D, int32_t 2D, int32_t 3D, float 2D, float 3D

Category: convert

Author:
Michel Couprie