DGtalTools  0.9.4
volCComponentCounter

Counts the number of connected component (same values) in a volume (Vol) file image.

Usage: volCComponentCounter [input]

Allowed options are :

-h [ --help ] display this message
-c [ --connectivity ] arg (=6) object connectivity (6,18,26) (default: 6 )
-i [ --input ] arg volume file (Vol) (default: standard input)

Example:

$ volCComponentCounter -i $DGtal/examples/samples/Al.100.vol

You should obtain:

New Block [Initial disjoint sets construction]
EndBlock [Initial disjoint sets construction] (515.602 ms)
New Block [Merging neighboring sets]
EndBlock [Merging neighboring sets] (1672.21 ms)
Number of disjoint 6-components = 2
See also
volCComponentCounter.cpp