Pink 0.9

ptjunction.c File Reference

detects junction points in 2d or 3d binary images More...


Detailed Description

detects junction points in 2d or 3d binary images

Usage: ptjunction in.pgm connex out.pgm

Description: Detects junction points in the 2d or 3d binary image in.pgm, which is supposed to contain a skeleton. A junction point is a white point x such that #(Nn[x] inter X) > 2, where Nn[x] stands for the n-neighborhood of x (excluding x), and n = 4, 8 in 2D or n = 6, 18, 26 in 3D, as set by the parameter connex.

When the type of in.pgm is 4_BYTE, the image is treated as a label image, where each label is processed as a separate binary image (all other labels are considered as background).

Types supported: byte 2D, byte 3D, long 3D

Category: topobin

Author:
Michel Couprie 2010