Table Of Contents



extract-surface <input> <output> [options]


Extract the isosurface from an intensity image or segmentation.



Input image.


Output surface mesh.

Command options

-isovalue <value>

Isovalue of surface intensities. (default: 0)

-blur <sigma>

Blur input image with kernel size sigma before running filter. (default: 0)


Resample image to an isotropic voxel size (minimum of input voxel size).

-normals [on|off]

Choose whether to generate normals (default) or not.

-gradients [on|off]

Choose whether to generate gradients or not (default).

-close [on|off]

Put zeros around the image to generate a closed surface(s).

-compress, -nocompress

Whether to compress output .vtp file. (default: on)


Write binary data when output file name extension is .vtk. (default: on)


Write ASCII data when output file name extension is .vtk. (default: off)

Standard options

-v, -verbose [n]

Increase/Set verbosity of output messages. (default: 0)

-debug [level]

Increase/Set debug level for output of intermediate results. (default: 0)

-version [major.minor]

Print version and exit or set version to emulate.


Print revision (or version) number only and exit.

-h, -help

Print help and exit.

Terminal options

-color, -nocolor

Enable/disable colored output. (default: off)

Parallelization options

-threads <n>

Use maximal <n> threads for parallel execution. (default: automatic)