Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Defeature

defeature removes small, undesired clusters of voxels using a voxel-count threshold. A cluster of voxels, defined as two or more voxels that share a face (edge and node sharing do not constitute a cluster) with count at or above the threshold, is preserved, whereas a cluster with a count below the threshold is eliminated through resorption into the surrounding material.

automesh defeature --help
Defeatures and creates a new segmentation

Usage: automesh defeature [OPTIONS] --input <FILE> --output <FILE> --min <MIN>

Options:
  -i, --input <FILE>   Segmentation input file (npy | spn)
  -o, --output <FILE>  Defeatured segmentation output file (npy | spn | vti)
  -m, --min <MIN>      Defeature clusters with less than MIN voxels
  -x, --nelx <NEL>     Number of voxels in the x-direction (spn)
  -y, --nely <NEL>     Number of voxels in the y-direction (spn)
  -z, --nelz <NEL>     Number of voxels in the z-direction (spn)
      --log <FILE>     Mirror terminal output to a log file
  -q, --quiet          Pass to quiet the terminal output
  -h, --help           Print help

Examples

  • Blobs — four synthetic circular blobs with random noise, illustrating how the threshold determines which clusters are preserved and which are resorbed.