DGtalTools  1.3.beta
eulerCharacteristic

Computes the Euleur Characteristic of a vol to a 8-bit raw file.

The vol file is first binarized using interval [m,M[ thresholds and the Eucler characteristic is given from the cubical complex.

Usage: eulerCharacteristic –input <volFileName> -m <minlevel> -M <maxlevel>

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED Input vol file.
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED Input vol file.
-m,--thresholdMin INT=0 threshold min (excluded) to define binary shape (default 0)
-M,--thresholdMax INT=255 threshold max (included) to define binary shape (default 255)

Example:

eulerCharacteristic -i $DGtal/examples/samples/cat10.vol -m 0

You should obtain such a result:

Got 72479 cells
Got 10128 pointels 28196 linels  26112 surfels and 8043  bells
Volumetric Euler Characteristic = 1
See also
eulerCharacteristic.cpp