Skip to main content

Mask To Volume

The Mask To Volume tool creates new volume object(s) from the target mask(s). This converts mask representations into grayscale volume objects that can be used for volume-based processing and analysis.

Accessing the Tool

  1. Navigate to the Segmentation tab in the ribbon.
  2. Click Mask To Volume in the Convert section.

Parameters

Target Object(s)

OptionDescription
Active maskConvert the active mask only.
Selected masksConvert all selected masks.
Visible masksConvert all visible masks.
All masksConvert every mask in the project.

Workflow

  1. Open the Mask To Volume tool from the Segmentation tab.
  2. Select the Target Object(s).
  3. Click Apply to create the volume object(s).

The new volume object(s) appear in the Object Browser with the same name as the source mask(s).

How It Works

The tool performs a direct conversion of mask data to volume format:

  • Mask voxel values are copied directly to the volume
  • 8-bit masks → 8-bit volumes (values 0–255)
  • 16-bit masks → 16-bit volumes (values 0–65535)
  • Spatial information (dimensions, spacing, origin) is preserved
  • Partial volume information at boundaries is maintained

Use Cases

Volume-Based Processing

Apply volume filters and operations:

  • Use volume smoothing algorithms
  • Apply intensity-based analyses
  • Perform volume rendering

Data Export

Convert masks to volume formats for external applications:

  • Export as DICOM, NIfTI, or other volume formats
  • Maintain compatibility with non-mask-aware software

Visualization

Use volume rendering techniques:

  • Apply transfer functions
  • Create volumetric visualizations
  • Combine with other volume data

Scripting

import ScriptingApi as api

app = api.Application()
mask_operations = app.get_mask_operations()

# Convert mask to volume object
mask_operations.convert_to_volume_objects(["Segmentation_Mask"])

See Also