Pink 0.9

ptend.c File Reference

detects end points in a binary image More...


Detailed Description

detects end points in a binary image

Usage: ptend in.pgm connex out.pgm

Description: An end point is a white point, which has exactly 1 white n-neighbour (n = 4, 8 (2d) or 6, 18, 26 (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 2002