Table Of Contents

offset-surface

Synopsis

offset-surface <input> <output> <distance> [options]

Description

Displaces surface mesh points by a given amount along the surface normal to create an offset surface mesh. To prevent self-intersections, a dense offset surface can optionally first be sampled from an implicit offset surface model onto which each point of the input surface is projected.

Another use of this tool is to enforce a minimum distance between two surface meshes such as in particular the inner (WM/cGM) and outer (cGM/CSF) cortical surfaces. Points of the <input> surface are displaced if they are closer than the allowed offset distance to the second surface.

Command options

-relative

Multiply given distance value by length of bounding box diagonal.

-implicit

Use offset surface reconstructed from implicit surface model.

-size <nx> [<ny> <nz>]

Number of voxels to use for implicit surface model. (default: bounding box divided by -voxelsize)

-voxelsize <dx> [<dy> <dz>]

Size of voxels to use for implicit surface model. This option is ignored when image -size is specified. (default: length of bounding box diagonal divided by 512)

-surface <file>

Reference surface to which a minimum offset distance to the input surface is required. (default: <input>)

-scalars <name> <min> [<max>]

Only move points whose given scalars point data is within the given range.

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.

-revision

Print revision (or version) number only and exit.

-h, -help

Print help and exit.