DGtalTools  0.9.4
volReSample

Re samples a 3D volumetric image (.vol, .longvol, .pgm3d) with a given grid size.

Usage: volReSample [input-files] [output-file]

Allowed options are :

-h [ --help ] display this message
-i [ --input ] arg input volumetric file (.vol, .longvol, .pgm3d)
-o [ --output ] arg the new volumetric file (.vol, .longvol, .pgm3d)
-g [ --gridSize ] arg size_x size_y size_z : the grid size of the re sampling

Example:

Here is an example of re sampling with different grid sizes 2, 4 and 8:

$ volReSample -i $DGtal/examples/samples/Al.100.vol -g 2 2 2 -o AlRS2.vol
$ volReSample -i $DGtal/examples/samples/Al.100.vol -g 4 4 4 -o AlRS4.vol
$ volReSample -i $DGtal/examples/samples/Al.100.vol -g 8 8 8 -o AlRS8.vol

We can convert the resulting volumetric files into a sequence of discrete points with the tool vol2sdp :

$ vol2sdp -i $DGtal/examples/samples/Al.100.vol -m 1 -o AlRS1.sdp
$ vol2sdp -i AlRS2.vol -m 1 -o AlRS2.sdp
$ vol2sdp -i AlRS4.vol -m 1 -o AlRS4.sdp
$ vol2sdp -i AlRS8.vol -m 1 -o AlRS8.sdp
$ cat AlRS{1,2,4,8}.sdp >> AlRS1_2_4_8.sdp
# display the resulting file:
3dSDPViewer -i AlRS1_2_4_8.sdp

You should obtain such a result:

resVolReSample.png
Resulting of re sampling with grid size = 2, 4 and 8.
See also
volReSample.cpp