DGtalTools  1.5.beta
heightfield2vol

Converts a 2D heightfield image into a volumetric file.

Usage: heightfield2vol [OPTIONS] 1 [2]

Allowed options are:

Positionals:
1 TEXT REQUIRED input heightfield file (2D image).
2 TEXT output volumetric file.
Options:
-h,--help Print this help message and exit
-i,--input TEXT REQUIRED input heightfield file (2D image).
-o,--output TEXT output volumetric file.
-s,--scale FLOAT set the scale factor on height values (default 1.0)
-z,--volZ UINT set the Z max value of domain.
-f,--foregroundValue UINT specify the foreground value of the resulting voxel.
-b,--backgroundValue UINT specify the background value of the resulting volumetric file.

Example:

$ heightfield2vol ${DGtal}/examples/samples/church.pgm volResu.vol -s 0.3 -z 50

You will obtain such image:

Resulting image.
See also
heightfield2vol.cpp