DGtalTools  1.3.beta
volCComponentCounter

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

Usage: ./volumetric/volCComponentCounter [OPTIONS] 1

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED volume file (.vol).
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED volume file (.vol).
-c,--connectivity UINT:{6,18,26}=6 object connectivity (6,18,26) (default: 6 ).

Example:

$ volCComponentCounter $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