generation of a graph from a curvilinear skeleton
Usage: skel2graph in.skel [mode [param]] out.graph
Description: Generation of a graph from a curvilinear skeleton.
The parameter mode has the following meaning (default is 0):
- 0: vertices of the graphs are elements (ends, curves, junctions, isolated points) of the skeleton
- 1: vertices of the graph are only ends, isolated points and junctions of the skeleton
- 2: each curve of the skeleton (not including its ends) is represented by N edges and N-1 vertices of the graph, where N is set to param
- 3: each curve of the skeleton (not including its end) is represented by N edges and N-1 vertices of the graph, where N is set to max(1, trunc(len / param)), where len is the number of points of the curve.
Types supported: 2Dskel, 3Dskel
Category: topobin
- Author:
- Michel Couprie 2009