DGtalTools  0.9.4
volSubSample

Brutally sub samples a vol file (division by 2 in each direction).

Usage: volSubSample –input <volFileName> –o <volOutputFileName>

Allowed options are :

-h [ --help ] display this message.
-i [ --input ] arg Input vol file.
-o [ --output ] arg Output filename.
-f [ --function ] arg (=mean) Function used to the down-sampling: {none,max, min, mean}

Example: You can apply several sub sampling:

$ volSubSample -i $DGtal/examples/samples/lobster.vol -o lobster2.vol -f mean
$ volSubSample -i lobster2.vol -o lobster4.vol -f mean
$ volSubSample -i lobster4.vol -o lobster8.vol -f mean

You can display the result by extracting the surface using 3dVolMarchingCubes:

$ 3dVolMarchingCubes -i $DGtal/examples/samples/lobster.vol -o lobster.off -t 30
$ 3dVolMarchingCubes -i lobster2.vol -t 30 -o lobster2.off
$ 3dVolMarchingCubes -i lobster4.vol -t 30 -o lobster4.off
$ 3dVolMarchingCubes -i lobster8.vol -t 30 -o lobster8.off
$ meshViewer -i lobster.off lobster2.off lobster4.off lobster8.off -n

You should obtain such a result:

resVolSubSample.png
Resulting visualization.
See also
volSubSample.cpp