Pink 0.9

pgm2skel.c File Reference

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


Detailed Description

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

Usage: pgm2skel in.pgm connex [len] 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 . The parameter connex sets the adjacency relation used for the object (4, 8 (2d) or 6, 18, 26 (3d)).

The optional parameter indicates the minimum length (in pixels/voxels) of a curve.

If a set of curve points with less than points, then:

a) if it contains at least one end point it will be eliminated (together with its end point(s)),

b) otherwise it will be considered as part of a junction.

If this parameter is given, then isolated points will be eliminated.

The format of the file .skel is described in PINKDIR/doc/formats.txt (section: Curvilinear skeletons).

Warning:
Points at the border of the image will be ignored.
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, 2009