Skip to main content

Additional Operations

The Additional menu provides access to supplementary mask operations that don't appear as primary tools on the ribbon. These operations handle specialized tasks like partial volume recalculation, mask inversion, hole filling, and flipping.

Accessing the Tools

  1. Navigate to the Segmentation tab in the ribbon.
  2. Click Additional in the Operations section.
  3. Select the desired operation from the dropdown menu.

Partial Volume Calculation

Recalculates the partial volume fractions at mask boundaries to minimize the influence of mixed background voxels. This adjustment enhances surface contour accuracy, resulting in more precise definitions for improved segmentation and analysis.

Parameters

ParameterDescription
Target Object(s)Active mask, Selected masks, Visible masks, or All masks.
ModeAuto (default) — Automatic calculation.
Use grayscale values — Uses the active volume's grayscale data for calculation.

When to Use

  • After creating a binary mask that needs sub-voxel boundary precision.
  • When preparing masks for accurate volume measurement.
  • Before surface generation for smoother boundaries.
warning

This tool does not support multi-label masks.


Invert Mask

Inverts the mask values, effectively flipping its voxel values. Voxels that were inside the mask become outside, and previously empty voxels become part of the mask.

Parameters

ParameterDescription
Target Object(s)Active mask, Selected masks, Visible masks, or All masks.

Use Cases

  • Creating a mask of everything except a specific structure.
  • Generating background masks for analysis.
  • Preparing masks for subtraction operations.
warning

This tool does not support multi-label masks.


Fill Holes

Fills in medium-sized holes and cavities in the target mask(s) using voting binary iterative hole filling. This tool requires binary masks and uses a neighborhood-based algorithm to close holes.

Parameters

ParameterDescription
Target Object(s)Active mask, Selected masks, Visible masks, or All masks.
Number of iterationsRange: 1-999 (default: 2). The number of iterations needed depends on the hole size, with larger holes requiring more iterations for complete filling.
Neighborhood radius (pixels)Range: 1+ (default: 1). Radius of the neighborhood used to compute the median.
Majority thresholdRange: 1-65535. The majority threshold determines the minimum number of pixels that need to be over 50% for an OFF pixel to become ON. For instance, if a pixel's surrounding neighborhood contains 124 pixels (excluding itself), then 50% of that would be 62. If you set the majority threshold to 5, it means that the filter will only switch the current OFF pixel to ON if 67 or more neighboring pixels are ON.

How It Works

The algorithm uses voting binary iterative hole filling:

  1. For each OFF (background) pixel, examines the neighborhood within the specified radius.
  2. Counts how many neighboring pixels are ON (foreground).
  3. Switches the pixel to ON if the count exceeds the majority threshold.
  4. Repeats for the specified number of iterations.

Comparison with Cavity Fill

Fill HolesCavity Fill
Uses voting binary iterative hole fillingUses grayscale fill holes
Requires binary masks onlyWorks with any mask
Controlled by iterations, radius, and thresholdControlled by connectivity mode
More granular control over hole sizeSimpler operation
warning
  • This tool does not support multi-label masks.
  • This tool only supports binary masks. The masks can be converted to binary using the Binarize tool.

Flip Mask

Performs the flipping operation on the mask object(s), mirroring the mask data along a specified axis.

Parameters

ParameterDescription
Target Object(s)Active mask, Selected masks, Visible masks, or All masks.
Flip alongThe axis to flip along: X, Y, or Z.
Flip modeAbout origin (default) — Flip around the origin point.
About center — Flip around the mask's center.

Use Cases

  • Correcting orientation errors.
  • Creating mirrored anatomical models.
  • Matching left/right structures.
warning

Flipping changes the spatial relationship between the mask and the underlying volume. Ensure the corresponding volume is also flipped if alignment must be maintained.


See Also