Advice and answers from the MeshInspector Team

Guide to Voxels Segmentation

How to Work with the Voxels Segmentation Tool
Updated over 6 days ago

Working with volumetric datasets frequently necessitates isolating specific structures or materials from the surrounding volume. The Voxels Segmentation tool in MeshInspector allows you to segment voxel regions using seed-based selection guided by voxel intensity values.

To access this tool, open the CT tab on the top toolbar and click Voxels Segmentation.

Voxels Segmentation: Where to Find

Once Voxels Segmentation is activated, several elements appear in the interface:

  • First, a dedicated Voxels Segmentation settings panel opens. It contains the controls used to define and refine the segmentation process.
  • At the same time, a Slice view appears within the tool panel. This view displays the currently selected CT slice. As such, it helps users identify structures and intensity ranges when creating segmentation seeds.
  • In addition, a slice plane appears in the viewport. It represents the currently active slice of the voxel volume and corresponds to the slice displayed in the slice view. It can be moved through the volume to examine different cross-sections of the dataset and guide the segmentation process.

In this example, we will segment the anterior part of the volume (the front region in anatomical terms). To define and inspect this region, the ZX slice is used. This slice orientation allows you to traverse the volume along the front-to-back direction (Y axis) and accurately position the slice plane within the anterior region of interest.

Voxels Segmentation Tool: Panel Overview

Voxels Segmentation: Settings and Controls

Slice

The Slice controls determine which cross-section of the voxel volume is currently active. The slice defines the plane displayed both in the main viewport and in the Slice view panel.

Three slice orientations are available:

  • Slice YZ displays a slice aligned with the YZ plane. The slice moves along the X axis, revealing cross-sections of the dataset from left to right.
  • Slice ZX displays a slice aligned with the ZX plane. The slice moves along the Y axis, allowing users to inspect the dataset from front to back.
  • Slice XY displays a slice aligned with the XY plane. The slice moves along the Z axis, producing horizontal cross-sections of the voxel volume.

The slice position can be adjusted in several ways:

  • Entering a value manually in the slice field;
  • Dragging the value to scroll through slices;
  • Using the + and buttons to move to the next or previous slice;
  • Left-clicking on the voxel object in the viewport to jump to the slice at the clicked location, based on the selected Slice orientation.

 

Only one Slice can be activated at a time.

Min and Max

The Min and Max parameters define the voxel intensity range used for segmentation picking. Only voxels whose intensity values fall within this range are considered during segmentation picking.

Adjusting this range helps focus the segmentation on structures with specific density values in the CT dataset.

  • Min defines the lower intensity threshold. Voxels with intensity values below this limit are excluded from seed picking. Increasing the Min value excludes low-density regions, like air or background.
  • Max defines the upper intensity threshold. Voxels with intensity values above this limit are ignored during seed placement. Lowering the Max value suppresses very dense structures.

Together, Min and Max create an intensity window that restricts which voxels can be used during the segmentation process.

Min and Max Example: Default Wide Range

In this example, the Min and Max values are set to a wide intensity range, covering most voxel intensities in the CT dataset. The same screenshot is reused to isolate the effect of these parameters. As a result, the Slice view displays a wide variety of anatomical structures. Soft tissues appear in mid-gray tones, while dense structures such as bone appear brighter.

Voxels Segmentation: Wide Range

Min and Max Example: Narrow Range

In this example, the Min and Max values are set to a narrow intensity window (−500 to 200), focusing on mid-density values in the CT dataset. As a result, the Slice view emphasizes soft tissues and other mid-density structures.

Voxels Segmentation: Narrow Range

Modifier

Modifier controls how the segmentation expands from the placed seeds. As such, it influences how the segmentation algorithm groups neighboring voxels around the seed points. A lower Modifier value makes the segmentation more restrictive. A higher Modifier value makes the segmentation more tolerant.

IO Scan Picking Mode

IO Scan Picking Mode (Inside/Outside) controls how strictly segmentation follows user-defined seeds. When enabled, segmentation is constrained by inside and outside seeds, producing a more localized and controlled result.

Voxels Segmentation: IO Mode

Show Tooltip

When enabled, Show Tooltip displays an informational tooltip when the cursor is placed over the Slice view during voxel segmentation. The tooltip shows voxel information (such as coordinates and density) and provides shortcuts and instructions for placing seeds and running the segmentation.

Voxels Segmentation: Show Toolip

When disabled, this tooltip is hidden.

Pen / Brush / Path

Pen places seeds as individual points. Each click adds a discrete seed. You can also click and drag to place a sequence of points along the cursor path.

Voxels Segmentation: Pen

Brush places seeds as a continuous region. Click and drag to paint seeds over an area, creating dense coverage for faster segmentation of larger structures.

Voxels Segmentation: Brush

Path, as the name suggests, places seeds along a defined path. Select a start point and a finish point for the system to generate a path.

Voxels Segmentation: Path

Segmentation Controls

Seeds define example regions that guide the segmentation. Inside seeds mark the target structure, while outside seeds mark areas to exclude. Both seed placement and segmentation are performed directly in the Slice view.

Controls: Pen and Brush

  • RMB places inside seeds.
  • Ctrl / Command + RMB places outside seeds.
  • Enter runs segmentation.
  • Shift + Enter accepts segmentation and clears seeds.
  • Mouse wheel adjusts the segmentation modifier.

Controls: Path

  • RMB picks the path start.
  • RMB picks the path finish.
  • Other controls remain the same.

Seeds opacity

Seeds opacity controls how visible the placed seeds appear on the slice image. Increasing the value makes the seed markers more opaque and easier to see against the grayscale CT slice. Lower values make the seeds more transparent, allowing more of the underlying slice image to remain visible. This parameter affects only the visualization of seeds. It does not influence the segmentation result or the behavior of the algorithm.

Clear Seeds

The Clear Seeds button removes all seeds currently placed on the slice. This allows the user to reset the seed placement and start the segmentation setup again if the seeds were placed incorrectly or if a different region needs to be marked.

Segmentation Example #1. Regular Mode

The goal is to isolate the central part surrounded by ribs and nearby bone fragments with similar intensity:

  • Inside seeds (RMB) are placed in the core of the structure to define the target.
  • Outside seeds (Ctrl / Command + RMB) are placed around it to prevent leakage into adjacent bones.

Voxels Segmentation: Example 1. Preparation

After pressing Enter, the segmentation is computed but not yet finalized. The yellow region shows a preview of the result: the voxels currently classified as part of the target structure based on the placed seeds and parameters.

Voxels Segmentation: Example # 1. After Pressing Enter

Finally, we press Shift + Enter to finalize the segmentation. The selected region is converted into a new object and added to the Scene tree. The original volume can be hidden in the Scene tree to focus on the result.

Voxels Segmentation: Example # 1. Result

Segmentation Example #2. IO Scan Picking Mode

Here, our goal is to isolate the same central structure, now using IO Scan Picking Mode for tighter control:

  • Inside seeds (RMB) are placed with the Brush in the core of the structure to define the target region.
  • Outside seeds (Ctrl / Command + RMB) are brushed around it to explicitly block expansion into adjacent bones.

Voxels Segmentation: Example 2. Preparation

After pressing Enter, the segmentation preview is displayed in the Slice view. The highlighted (yellow) region shows the voxels currently classified as belonging to the target structure based on the placed seeds and IO constraints.

Voxels Segmentation: After Clicking Enter

After pressing Shift + Enter, the segmentation is finalized and converted into a new object in the Scene tree. The result captures the central structure as a controlled and localized region.

Voxels Segmentation: Example 2. Result

How the Voxels Segmentation Tool Works

Table Of Contents
Related materials