Pink 0.9

skelfindelbows.c File Reference

detection of "elbows" in a curvilinear skeleton More...


Detailed Description

detection of "elbows" in a curvilinear skeleton

Usage: skelfindelbows in.skel thickness sharp out.pgm

Description:

Find "elbows" (points making sharp angles) in the curves of skeleton in.skel. Matching points are written as voxels in the returned image out.pgm.

Let <S[0], ... S[n-1]> be the points of a cover of the curve C by digital straight line segments (DSSs). 
Let j be an index between 1 and n-2, if angle(S[j-1]S[j], S[j]S[j+1]) <= sharp then output S[j].

Parameter thick (thickness for DSS recognition) is given in pixels, parameter sharp in degrees.

Types supported: skel 2d, skel 3d

Category: topobin

Author:
Michel Couprie 2011