Manipulate Mask
The Manipulate Mask tool modifies mask geometry by hollowing, growing (dilating), or shrinking (eroding) the mask boundaries. These operations change the extent of the mask without altering its overall shape.
Accessing the Tool
- Navigate to the Segmentation tab in the ribbon.
- Click Manipulate Mask in the Operations section.
Operations
Hollow Mask
Create a hollow shell from a solid mask by removing interior voxels:
| Parameter | Description |
|---|---|
| Shell thickness (mm) | Thickness of the hollow shell. The tool reports the thickness it can actually produce at the mask's resolution, in millimetres and in voxels, and warns when the value is not feasible. |
| Shell mode | Which surface of the shell the original mask surface becomes. |
Shell mode options:
| Mode | Description |
|---|---|
| Inside surface | The original surface becomes the inside of the shell, so the shell extends outward by the thickness. |
| Medial surface | The original surface runs through the middle of the shell, half the thickness to each side. |
| Outside surface | The original surface becomes the outside of the shell, so the shell extends inward by the thickness. |
Grow Mask
Move the mask boundary outward by a distance (dilation):
| Parameter | Description |
|---|---|
| Margin size (mm) | How far the boundary moves outward. |
Shrink Mask
Move the mask boundary inward by a distance (erosion):
| Parameter | Description |
|---|---|
| Margin size (mm) | How far the boundary moves inward. |
Parameters
Target Objects
| Option | Description |
|---|---|
| Active mask | Apply to the active mask only. |
| Selected masks | Apply to all selected masks. |
| All masks | Apply to every mask. |
Workflow
- Open the Manipulate Mask tool from the Segmentation tab.
- Select the Target Objects.
- Choose the Operation (Hollow, Grow, or Shrink).
- Configure the operation parameters.
- Click Apply to modify the mask.
Use Cases
Creating Hollow Structures
Convert solid segmentations to shells for:
- Lightweight 3D printing models
- Wall thickness analysis
- Sheath or casing design
Margin Creation
Grow masks to create safety margins around structures:
- Radiation therapy planning margins
- Surgical planning buffers
- Tolerance zones
Size Reduction
Shrink masks to:
- Create inner boundaries
- Remove surface voxels
- Compensate for partial volume effects
Tips
- Use physical units (mm) for consistent results across different image resolutions.
- For Hollow operations, ensure shell thickness is larger than voxel spacing.
- Combine Grow and Shrink operations to smooth boundaries (morphological opening/closing).
The Grow and Shrink operations are equivalent to morphological dilation and erosion, respectively. Combining them creates opening (shrink then grow) or closing (grow then shrink) effects.
Technical Background
Hollow Operation
The hollow effect is created by:
- Computing a distance transform from the mask surface.
- Selecting voxels within the specified shell thickness.
- Removing voxels outside the shell zone.
Grow/Shrink Operations
These operations use morphological structuring elements:
Where is a spherical structuring element with radius .
See Also
- Morphology Operations: detailed morphological operations.
- Cavity Fill: fill hollow structures.
- Boolean: create shells using Boolean difference.
- Segmentation Tab Overview: overview of all segmentation tools.