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)
Types supported: byte 2d, byte 3d
Category: topobin