Pink 0.9

GA2pgm.c File Reference

Convert a 4-connected edge-weighted graph (a GA) into a pgm image. More...


Detailed Description

Convert a 4-connected edge-weighted graph (a GA) into a pgm image.

Usage: GA2pgm graph.ga param out.pgm

Description:

Convert a 4-connected edge-weighted graph (graph.ga) into a pgm image (out.pgm) where each pixel represents a vertex of the input graph and the gray level of a pixel is obtained from the values of its incident edges by means of an operation depending of the parameter param.

If param = 1, then max is used, and if param = 2, min is used.

Types supported: ga 2d, ga 3d

Category: GA

Author:
Jean Cousty