Pink 0.9

pgm2vskel.c File Reference

decomposition of a valuated curvilinear skeleton into isolated points, end points, curves and junctions More...


Detailed Description

decomposition of a valuated curvilinear skeleton into isolated points, end points, curves and junctions

Usage: pgm2vskel in.pgm val.pgm connex out.skel

Description: The skeleton found in in.pgm is decomposed into isolated points, end points, curves and junctions ; and its description is stored in out.skel . Each point of the skeleton is valuated by the corresponding value found in val.pgm . The parameter connex sets the adjacency relation used for the object (4, 8 (2d) or 6, 18, 26 (3d)).

Warning:
No verification is done to check that the input image in.pgm contains indeed a curvilinear skeleton. In the contrary case, the result would be meaningless.
IMPORTANT LIMITATION: different junctions in the original image must not be in direct contact with each other (i.e., connected) otherwise they will be considered as a single junction. To prevent this to occur, one can increase image resolution.

Types supported: byte 2d, byte 3d

Category: topobin

Author:
Michel Couprie 2004