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 <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). (default: off)

-normals, -nonormals

Whether to calculate surface normals. (default: on)

-gradients, -nogradients

Whether to calculate image gradients. (default: off)

-close, -noclose

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

-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)