Usage: pgm2vtk in.pgm <bin|dist [max]> out.vtk
Description: Create a vtk image containing the voxels of the pgm image (bin: binary result; dist: coloured result with a distance input image). In "dist" option, you can determine the value to consider as the distance max (higher values will appear in red and lower values will appear in a proportional clor from blue to red). If not specified, the distance max is returned.
Types supported: byte 3d, long 3d
Category: convert