Measurements & AnalysisEnglish

Analyze Contact Areas Between Labels

Analyzes how every label of a labelled MultiROI touches the other labels: the contact area of each label pair, each label's total contact area and coordination number (how many partners it touches), surface area and cont

Updated 2026-09-01User manual

Contact Area Analysis - User Manual

Dragonfly Prototype Apps · Analyze Contact Areas Between Labels...

Version 1.0 · 2026-09-01


English Manual

Contents

1. Introduction

2. The two contact definitions

3. How to use it

4. What the workbook contains

5. Requirements

1. Introduction

Analyzes how every label of a labelled MultiROI touches the other labels: the contact area of each label pair, each label's total contact area and coordination number (how many partners it touches), surface area and contact fraction, and summary statistics over all contacts.

Everything is saved into one .xlsx workbook (sheets: Settings, Per-label, Pairs, Matrix, Statistics) and, optionally, a .docx report built from the same results — overview, statistics, histograms and top tables.

Nothing is created or modified in the session. The plugin reads the selected MultiROI and writes files where you point it.

2. The two contact definitions

Face contact — only voxels sharing a FACE count as contact; the contact area is the exact sum of the shared faces' areas (a voxelized interface, no estimate).

Proximity — resolution, voxel size and segmentation precision can leave a thin gap between bodies that physically touch. In this mode two labels count as in contact when any two of their voxel centres lie within the threshold (default 2 voxel steps; editable, or switch the unit to µm). The criterion is computed exactly, per pair, from Euclidean distance transforms.

The proximity contact area is a grid-line crossing count over the true gap band: unlabelled voxels whose distances to the two labels sum to ≤ the threshold form a lens between the bodies, and along every grid line, each place where a run of label i and a run of label j touch directly or are separated only by lens voxels contributes one face. Flat gaps are counted exactly; staircase/curved gap columns join the area only once the lens bridges them along a grid line, so those areas are a conservative lower bound, and areas measured at different thresholds are not comparable.

  • At threshold 1 the proximity mode equals face mode EXACTLY, so results under the two definitions are directly comparable.
  • A pure edge/corner touch (centre distance √2 or √3) is a line/point contact: it is listed as a contact pair with its minimum centre distance, but its area is 0 — the geometric truth, stated rather than hidden.

⚠ With anisotropic voxels and a threshold in voxel steps, the physical tolerance differs per axis; the result carries an explicit warning. Switch the threshold unit to µm for an isotropic physical tolerance.

3. How to use it

1. Pick the labelled MultiROI (press Refresh after publishing a new one). The panel shows its label count, size and voxel size; for 4D data pick the time step.

2. Choose the contact definition: Face contact, or Proximity with a threshold (default 2 voxel steps — the panel shows the physical equivalent per axis; the unit can be µm instead).

3. Pick the output folder and base file name; keep .docx report ticked to get the report next to the workbook.

4. Press Run analysis. A progress bar tracks the run and Cancel stops it; when it finishes, Open output folder shows the results.

Picture 2

The panel: pick the MultiROI, choose the contact definition, and the workbook is written with both the grid-line crossing area and the count of touching label pairs.

4. What the workbook contains

  • Settings — the source, contact definition, threshold, voxel size, and every warning the run produced.
  • Per-label — for each label: voxel count, volume, surface area, TOTAL contact area, contact fraction, coordination number, and the partner list.
  • Pairs — one row per contacting pair (label i, label j, names, contact area; in proximity mode also the minimum centre distance), sorted by area.
  • Matrix — the symmetric label × label contact-area matrix (omitted above 256 labels; the Pairs sheet always carries everything).
  • Statistics — pair-area statistics (count, total, mean, std, min, median, max) and coordination-number statistics.

5. Requirements

No install, no internet, no GPU, no venv — in-process PyQt6 + numpy + scipy + openpyxl + matplotlib, all bundled with Dragonfly. Needs a published, labelled MultiROI; the analysis is refused when the voxel size cannot be read. Scales to thousands of labels (bounding-box prefilter, exact per-pair computation).

You’ve reached the end of this manual.Explore the library →

PROTOTYPE APPS

Manual assistant

Find an app, understand a parameter, or follow a workflow. Answers include links to the manuals.

Questions and answers are saved long-term to your account. You and site administrators can view them; they may be reviewed to improve the product. Do not submit passwords or confidential data.

All models share a daily allowance. Larger models use more. Chat pauses at the daily protection limit; manual search remains available.

Search the manuals

Cloudflare AI receives your question, recent conversation and relevant public manual excerpts. Records are stored privately in Cloudflare R2 without automatic expiry. Check the cited manual before acting on an answer.