Pink 0.9

nbcomp.c File Reference

returning number of connected components of a grayscale or a binary image More...


Detailed Description

returning number of connected components of a grayscale or a binary image

Usage: nbcomp in.pgm connex {fgd|bgd|min|max|pla} [out.list]

Description: The argument connex selects the connectivity (4, 8 in 2D; 6, 18, 26 in 3D). The argument <min|max|pla> selects the kind of flat zone to be counted:

The result is written in the list out.list.

If the parameter out.list is ommitted, the result is printed on the standard output.

Types supported: byte 2d, byte 3d, int32_t 2d, int32_t 3d

Category: connect

Author:
Cedric Allene