Pink 0.9

selectcomp.c File Reference

selects a connected component More...


Detailed Description

selects a connected component

Usage: selectcomp in.pgm connex x y z out.pgm

Description: The connected component of the binary image in.pgm (according to the connectivity connex) which contains the point (x,y,z) is preserved. All other points are deleted. Possible values for connex are 4, 8 (2D), 6, 18, 26, 60, 260 (3D). Values 60 and 260 correspond to restrictions of 6 and 26 connectivities to the current xy plane.

Types supported: byte 2d, byte 3d

Category: connect

Author:
Michel Couprie