Skip to main content

Mask Statistics

The Mask Statistics tools provide statistical analysis of mask objects in your workspace. This dropdown menu in the Measure ribbon tab contains five tools for analyzing masks from different perspectives.

Void/Inclusion Analysis

If you're working with defect detection, see Void/Inclusion Analysis which provides the same measurements and report sections but with defect-oriented wording (for example, "voids", "inclusions", or "defects") instead of generic mask-label terms.

Accessing Mask Statistics

  1. Navigate to the Measure ribbon tab
  2. Click the Mask Statistics dropdown button
  3. Select the appropriate analysis tool
Choosing the Right Tool
  • Whole Mask/Slice: Analyze complete masks or slice-by-slice distribution
  • Per-Region: Identify and analyze individual disconnected components in binary masks
  • Per-Label: Analyze multi-label segmentation results (e.g., from AI segmentation)
  • 3D Preview tools: Add surface mesh statistics to voxel-based analysis

Whole Mask/Slice Statistics

Compute statistics for the complete mask volume or analyze individual slices along any axis.

Description

This tool calculates shape and intensity statistics for entire mask objects or on a per-slice basis. Results are displayed in tabular format with options to select which statistics to compute.

Target Selection

OptionDescription
Active maskAnalyze only the currently selected mask
Visible masksAnalyze all masks that are currently visible

Slice Analysis Mode

OptionDescription
Whole maskCompute statistics for the entire 3D volume
X slices (Sagittal)Compute statistics for each YZ slice
Y slices (Coronal)Compute statistics for each XZ slice
Z slices (Axial)Compute statistics for each XY slice

Histogram Settings

ControlDescription
Number of binsNumber of histogram bins (10-1000, default: 100)

Output Tables

TableDescription
InformationGeneral mask properties (name, dimensions, spacing)
StatisticsSelected statistics values for the mask
Individual visible mask statisticsPer-mask breakdown when analyzing visible masks

Toolbar

ButtonDescription
Edit Statistics...Open dialog to select which statistics to compute
Export...Export results to PDF or CSV

Per-Region Mask Statistics

Analyze connected regions (components) within a mask with region-by-region statistics.

Description

Automatically detects and labels connected regions within a binary mask, then computes statistics for each individual region. Includes descriptive statistics summarizing all regions.

Target Selection

OptionDescription
Active maskAnalyze connected regions in the currently selected mask
Visible masksAnalyze connected regions in all visible masks

Histogram Settings

ControlDescription
Y-axis modeFrequency (linear) or Frequency (log scale)
Number of binsHistogram resolution (10-1000, default: 100)

Output Tables

This tool produces three separate results tables:

TableDescription
Region StatisticsIndividual statistics for each connected region
Descriptive StatisticsMin, Max, Mean, and Std Dev across all regions for each statistic
Whole Mask StatisticsStatistics computed for the entire mask (all regions combined)

Region Table Columns

  • Region ID: Unique identifier for each connected region
  • Voxel Count: Number of voxels in the region
  • Volume: Physical volume (mm³)
  • Centroid X/Y/Z: Center of mass position
  • Intensity statistics: Min, Max, Mean, Median, Standard Deviation
  • Shape metrics: Roundness, Compactness, Elongation, Flatness

Histogram Display

Interactive histogram showing intensity distribution:

  • Toggle between count and percentage mode
  • Adjustable bin count for resolution control
  • Visual display of intensity spread across regions

Annotation Feature

Each region can be annotated with a text label that appears in the 3D view.

Toolbar

ButtonDescription
Edit Statistics...Select which statistics to compute
Add AnnotationAdd text annotation to selected region
Export...Export results to PDF or CSV

Per-Label Mask Statistics

Analyze multi-label segmentation masks with label-by-label statistics.

Description

Computes statistics for each unique label value in a multi-label mask. Ideal for analyzing AI segmentation results where different structures have different label values.

Target Selection

OptionDescription
Active maskAnalyze labels in the currently selected mask
Visible masksAnalyze labels in all visible masks

Label Display

Each label is displayed with:

  • Label ID: The numeric label value
  • Color: Color from the lookup table (if assigned)
  • Name: Label name from lookup table (if available)

Histogram Settings

ControlDescription
Y-axis modeFrequency (linear) or Frequency (log scale)
Number of binsHistogram resolution (10-1000)

Output Tables

This tool produces three separate results tables:

TableDescription
Label StatisticsIndividual statistics for each label value
Descriptive StatisticsMin, Max, Mean, and Std Dev across all labels
Whole Mask StatisticsStatistics for the entire mask (all labels combined)

Label Table Columns

  • Label Value: The numeric ID of the label
  • Label Name: Name from lookup table (if assigned)
  • Voxel Count: Number of voxels with this label
  • Volume: Physical volume (mm³)
  • Volume Fraction: Percentage of total mask volume
  • All selected statistics: Same as Per-Region analysis

Lookup Table Integration

When a lookup table is assigned to the mask:

  • Labels display their assigned names
  • Labels display their assigned colors
  • Unknown labels show as "Unknown" with gray color

Annotation Feature

Each label can be annotated with a text label that appears in the 3D view.

Toolbar

ButtonDescription
Edit Statistics...Select which statistics to compute
Add AnnotationAdd text annotation to selected label
Export...Export results to PDF or CSV

Per-Region Mask 3D Preview Statistics

Generate 3D surface meshes for connected regions and compute surface-based statistics.

Description

Creates a 3D surface mesh for each connected region in the mask and computes mesh-based statistics. Provides interactive 3D visualization with color-coded regions.

Target Selection

OptionDescription
Active maskAnalyze the currently selected mask

Processing

  1. Automatically detects connected regions
  2. Generates a surface mesh for each region
  3. Computes mesh-based statistics
  4. Displays colored regions in 3D preview

3D Preview Features

FeatureDescription
Color codingEach region displayed in a distinct color
Interactive rotationRotate, zoom, and pan the 3D view
Region selectionClick to select individual regions
Visibility toggleShow/hide individual regions

Surface Mesh Statistics

In addition to voxel-based statistics, surface mesh statistics include:

  • Surface area (mm²)
  • Mesh volume (mm³)
  • Number of vertices
  • Number of faces/triangles
  • Surface-to-volume ratio

Toolbar

ButtonDescription
Export Mesh...Export selected region mesh as STL/OBJ
Export...Export statistics to PDF or CSV

Per-Label Mask 3D Preview Statistics

Generate 3D surface meshes for each label value and compute surface-based statistics.

Description

Creates a 3D surface mesh for each label in a multi-label mask and computes mesh-based statistics. Provides interactive 3D visualization with color-coded labels.

Target Selection

OptionDescription
Active maskAnalyze the currently selected mask

Processing

  1. Extracts each unique label value
  2. Generates a surface mesh for each label
  3. Applies lookup table colors (if available)
  4. Displays labeled surfaces in 3D preview

3D Preview Features

FeatureDescription
Lookup table colorsLabels use colors from assigned lookup table
Interactive rotationRotate, zoom, and pan the 3D view
Label selectionClick to select individual labels
Visibility toggleShow/hide individual labels
Label namesDisplay label names from lookup table

Surface Mesh Statistics

Same as Per-Region 3D Preview:

  • Surface area (mm²)
  • Mesh volume (mm³)
  • Number of vertices
  • Number of faces/triangles
  • Surface-to-volume ratio

Toolbar

ButtonDescription
Export Mesh...Export selected label mesh as STL/OBJ
Export...Export statistics to PDF or CSV

Available Statistics

All mask statistics tools can compute the following measurements. Use Edit Statistics... to select which statistics to include.

Default Statistics (Computed by Default)

StatisticDescription
Voxel CountNumber of voxels in the region/label
VolumePhysical volume in mm³
Volume FractionPercentage of total mask volume
PerimeterBoundary perimeter length
Min IntensityMinimum voxel intensity value
Max IntensityMaximum voxel intensity value
Mean IntensityAverage intensity across voxels
Median IntensityMiddle intensity value
Standard DeviationIntensity variation measure

Shape Statistics

StatisticDescription
Equivalent DiameterDiameter of sphere with equivalent volume
RoundnessCircularity measure (0-1, 1 = perfect sphere)
CompactnessShape compactness (0-1)
ElongationRatio of primary to secondary axis lengths
FlatnessRatio of secondary to tertiary axis lengths
Shape FactorOverall shape irregularity measure

Position Statistics

StatisticDescription
Centroid XX-coordinate of center of mass
Centroid YY-coordinate of center of mass
Centroid ZZ-coordinate of center of mass
PCA Deviation XDeviation along first principal axis
PCA Deviation YDeviation along second principal axis
PCA Deviation ZDeviation along third principal axis
Projected Size X/Y/ZSize projected onto each axis
Projected Area XY/XZ/YZArea projected onto each plane

Intensity Percentiles

StatisticDescription
Histogram 5% Quantile5th percentile intensity
Histogram 25% Quantile25th percentile (Q1)
Histogram 50% Quantile50th percentile (median)
Histogram 75% Quantile75th percentile (Q3)
Histogram 95% Quantile95th percentile intensity

Descriptive Statistics Table

For Per-Region and Per-Label tools, the Descriptive Statistics table summarizes all regions/labels:

ColumnDescription
StatisticName of the measured statistic
MinMinimum value across all regions/labels
MaxMaximum value across all regions/labels
MeanAverage value across all regions/labels
Std DevStandard deviation across all regions/labels

This table helps identify:

  • Range of values (Min to Max)
  • Typical values (Mean)
  • Variation in the data (Std Dev)

Export Options

All statistics can be exported via the toolbar:

FormatDescription
PDF ReportComplete report with tables, charts, and optional 3D scene
CSVComma-separated values for spreadsheet import

PDF Report Contents

When exporting to PDF, you can include:

  • Analysis metadata and settings summary
  • Requested metrics list
  • All statistics tables
  • Histogram visualizations
  • Histogram data tables (per selected metric)
  • 3D scene with labeled regions/labels
  • Snapshots of views
  • Custom header/footer and metadata

If the source workflow is Void/Inclusion analysis, the report uses defect-oriented wording (void/inclusion/defect) instead of mask-label terminology.

See PDF Report Generation for detailed export options.


Tips

  • Per-Region is best for analyzing individual objects within a single binary mask
  • Per-Label is ideal for multi-structure segmentations (e.g., AI segmentation results)
  • 3D Preview tools add surface mesh statistics not available in voxel-based analysis
  • Use the histogram to identify intensity distribution patterns
  • The Descriptive Statistics table quickly shows data spread across regions/labels
  • Export to Excel for further statistical analysis in spreadsheet software
  • Use annotations to mark specific regions/labels of interest in 3D