Usage: skeleton in.pgm prio connex [inhibit] out.pgm
Description: Ultimate binary skeleton guided by a priority image. The lowest values of the priority image correspond to the highest priority.
The parameter prio is either an image (byte or long), or a numerical code indicating that a distance map will be used as a priority image; the possible choices are:
If the parameter inhibit is given and is an integer different from -1, then the points which correspond to this priority value will be left unchanged. If the parameter inhibit is given and is a binary image name, then the points of this image will be left unchanged.
Let X be the set corresponding to the input image in.pgm. Let P be the function corresponding to the priority image. Let I be the set corresponding to the inhibit image, if given, or the empty set otherwise. The algorithm is the following:
Repeat: Select a point x in X \ I such that P[x] is minimal If x is simple for X then X = X \ {x} I = I union {x} Until X == I Result: X
Types supported: byte 2d, byte 3d
Category: topobin
skeleton circuit1 8 8 circuit1_skeleton
circuit1 | circuit1_skeleton |