MTZ² v1.0 Lite: Scientific Reference Manual and Experimental Protocols in 2D/3D/4D Bioimaging

Methodological and biophysical treatise for confocal laser scanning (CLSM), multiphoton (2PE), light-sheet (SPIM) microscopy and quantitative sub-micrometric cellular morphometry.

Authors: INTELLIGENTIA.dev Bio-Imaging Research Group
Target Audience: PIs, Postdocs, Researchers and University Lecturers
Standards: OME (Open Microscopy Environment) / FAIR Data
Version: 1.0 (Build 11.4)
Quick Guide

Where to Find Everything on Screen

Orientation before methodology. Analysis wizards are selected from the Surpass Tree (🌳 Surpass Tree tab) and open in the adjacent ⚙️ Wizards tab: clicking an item in the tree automatically switches to that tab.

I Want To…Navigation PathControl / Trigger
AI Assistant (Autonomous workflows & Q&A)Right panel → 🤖 AI (or Ctrl/⌘ + K)Send
Close Vantage or ArenaVantage toolbar / Arena header✕ Close (or Esc)
Surfaces (Auto-created on load)🌳 Surpass Tree → 🧊 3D Surfaces⚡ Create Surfaces / ✨ Auto-adjust
Detect Spots🌳 Surpass Tree → 🔴 Spots / Vesicles🔍 Detect 3D Spots
4D Particle Tracking🌳 Surpass Tree → ◯ 4D Trajectories🕑 Track Objects Over Time
Filaments & Sholl Analysis🌳 Surpass Tree → 🌿 Filaments & Branches🌿 Trace From Image
Clipping Plane & Volume Crop🌳 Surpass Tree → ✂️ 3D Clipping Plane«Activate Clipping Plane» · «Volume Crop (Box)»: adjusts viewport bounds only
FASTA Biological Sequences🌳 Surpass Tree → 🧬 Sequences / ProbesAnalyze Text
Channels & False-Color LUTsLeft panel → 🎨 Channels LUT—
Colocalisation AnalysisRight panel → 🟣 Coloc—
Descriptive StatisticsRight panel → 📊 Statistics—
Interactive 3D RulerFloating viewport toolbar📏
Provenance, Session, Batch, TeachingTop menu bar🔬 Reproducibility
Validate Optical Instrument🔬 Reproducibility«Validate Instrument» tab
Import Image StackTop menu bar📂 Load Image / Stack
High-Resolution Publication FigureTop menu bar📷 Snapshot HD (Ctrl+S)
Canonical 3D Views3D toolbar / Fullscreen / View Menu🌐 Iso, ⬆️ XY, ➡️ XZ, ↗️ YZ
Toggle Floating PanelsKeyboard shortcuts / HeaderAlt+1, Alt+2, Alt+3, Alt+4
Reset Panels to Factory DefaultsPanels Menu / Keyboard↺ Reset (Alt+0)
Sample / Series TraceabilityCentral top headerSAMPLE: (LED ●)
The Tree selects, the «Wizards» tab displays. They are two adjacent tabs in the same panel. Clicking an item in the tree automatically transitions the panel to «Wizards». To return to the tree — for example, to toggle volume visibility — click 🌳 Surpass Tree again.
4D Tracking requires a temporal time-series. The built-in demo specimens Mitosis, Microvascular Network, and Phagocytosis feature multiple temporal frames; Pyramidal Neuron and Demo Stack contain a single timepoint, and the tracking module will correctly report no temporal dynamics to link.
Tree checkboxes control visibility, not quantitative analysis. Unchecking 📦 3D Volume hides raycasting in the viewport without purging data from RAM — recommended prior to using the 3D ruler so measurement endpoints snap directly to reconstructed geometry rather than volumetric noise.

User Account & Privacy

MTZ² authenticates via Google Account at intelligentia.dev/mtz+mgd/: click Sign in with Google. New accounts are provisioned instantly without passwords to manage. Your raw microscopic datasets are never uploaded to external servers: data is opened and rendered strictly client-side within your browser sandbox.

  • Avatar Pill (top-right corner): My Account and Sign Out. On mobile devices, located in the ⋯ More action sheet.
  • My Account: Displays all stored profile parameters (name, email, access timestamps), exports session data to JSON, and provides one-click account deletion.
  • Support & Inquiries: Help › Contact & Support, or direct inquiry via imagine@intelligentia.dev.
Recipes

Complete Examples, Step by Step

Routine workflows from start to finish. Each recipe can be followed independently without having read the rest of the manual.

R.1 Counting Nuclei and Measuring Area

Recipe 1 — Nuclei Counting
  1. File › Import Images. Leave resolution at Native. If calibration is unknown, click «I don't know the calibration — work in voxels».
  2. Upon loading, nuclei are automatically segmented using parameters measured directly from the image; Wizards › 🧊 Surfaces displays the channel and values.
  3. Compare contours with visual inspection; if needed, adjust threshold, diameter or range and click ⚡ Create Surfaces (✨ Auto-adjust re-measures).
  4. Or ask the AI Assistant: «Count nuclei and report mean area».
  5. File › Export CSV Statistics.

R.2 Curating Results Manually

Recipe 2 — Curating the Catalog
  1. Right panel, 🗂 Objects tab.
  2. Click on an object: it highlights in 3D and its properties panel opens.
  3. Delete inappropriate items; rename or recolor with Apply changes.
  4. + Sphere manually adds an object missed by the algorithm.
  5. The Show filter isolates manual or edited items.
Audit Trail & Permanent Logging
Every modified object is permanently flagged as edited or manual, and is recorded as such in the CSV and Methods paragraph. A manually curated count cannot be represented as fully automated.

R.3 Comparing Two Markers

Recipe 3 — Colocalisation
  1. Right panel, 🟣 Coloc tab.
  2. Select the two channels. Derived channels are omitted: correlating a channel calculated from others yields artificially inflated coefficients by construction.
  3. Leave automatic thresholding active for initial assessment and inspect the scatter plot.
  4. Evaluate Pearson and Manders coefficients alongside confidence intervals, not merely central estimates.

R.4 Preparing a Publication Figure

Recipe 4 — Figure & Traceability
  1. Adjust orientation using left-click drag and scroll wheel zoom.
  2. For clean imagery without bounding cage or grid, uncheck Surpass Tree › 📐 Micrometric Scale Box. The scale bar remains visible.
  3. Snapshot HD exports PNG with recalculated physical scale bar.
  4. Reproducibility › Methods Paragraph generates methodology text with exact parameters, including manually curated objects.
  5. Save Session preserves parameters and manual objects.

R.5 Exporting 3D Meshes for 3D Printing (STL) and CAD / Blender (OBJ)

Recipe 5 — Additive Manufacturing & 3D Rendering
  1. Load confocal stack and open the Surfaces Wizard.
  2. Set channel, threshold, and diameter. Use coverage slider ($O(1)$ CDF lookup) to eliminate background noise without stalling the interface.
  3. Click Create Surfaces to generate watertight isosurfaces via Marching Cubes.
  4. Beneath the wizard, click:
    • Export STL (3D Printing): Downloads watertight binary STL (IEEE 754 float32) ready for PrusaSlicer, Bambu Studio, or Cura. With $1\,\mu\text{m} = 1\,\text{mm}$ in slicer, produces a 1,000:1 physical scale model.
    • Export OBJ (CAD / 3D Modeling): Downloads geometry with physical micrometer coordinates and smooth vertex normals for photorealistic rendering and animation.

R.6 Loading Native Zeiss (.CZI) and Leica (.LIF) Formats Without Conversion

Recipe 6 — Direct Microscope Acquisitions
  1. Open file with File › Load Image / Stack (Ctrl/⌘ + O) or drag onto viewport. Prior TIFF export from vendor software is unnecessary.
  2. Metadata header dialog parses dimensions, channels, timepoints, and voxel calibration without pre-loading pixels into RAM. For multi-scene CZI or multi-series LIF, pick target in Series or Scene.
  3. Verify voxel calibration (read from file). If downsampling warning appears, allocate more Image Memory or accept downsampling (formally tracked).
  4. Click Import: channel names and pseudocolors are preserved, and 4D player adopts acquisition time intervals.
Limitations. CZI files compressed with JPEG XR are unsupported (explicit warning shown): export uncompressed or with Zstd. For Leica mosaics saved as a single series, only the first tile is parsed with notice. Always cross-check dimensions and calibration on first import against microscope vendor software.

R.7 Axial Penetration and Aberration Diagnosis in Maximized View (Canonical Views)

Recipe 7 — Orthographic Axial Diagnosis in Fullscreen
  1. Import confocal stack or pick Pyramidal Neuron demo sample in header.
  2. Maximize viewport with M or Maximize / Fullscreen in 3D navigation bar. Viewport expands to 100% display area.
  3. In floating 3D controls, locate 3D View and click Frontal Plane XZ (➡️). Camera locks perpendicular to the axial plane.
  4. Photonic decay assessment: Inspect vertical profile $I(z)$. If deep structures exhibit severe attenuation ($I(z) < 0.2 \cdot I_0$), enable depth compensation in 🎨 Channels LUT.
  5. Focal shift elongation diagnosis: If an oil immersion objective ($n_{\text{oil}} = 1.518$) was used in aqueous media ($n_{\text{sample}} \approx 1.33$), apparent axial aspect ratio $\Delta z / \Delta x$ is overestimated by $\approx 1.14$. Click 3D Ruler (📏), measure soma height, and apply refractive index correction: $$z_{\text{real}} = z_{\text{nominal}} \times \frac{n_{\text{sample}}}{n_{\text{oil}}}$$
  6. Click Lateral Plane YZ (↗️) to verify sagittal symmetry.
  7. Click Isometric 3D (🌐) to return to free 3D perspective and capture figure with Ctrl+S.

R.8 Ergonomic Multi-Monitor Workspace Setup (PanelManager)

Recipe 8 — Panel Undocking, Floating, and Workspace Restoration
  1. In control bar of Left Panel (Surpass / Channels), click undock button ❐ (or press Alt+1). Panel detaches as a glassmorphic floating window.
  2. Click and drag top handle ⋮⋮ to secondary monitor or screen corner.
  3. Resize window by dragging bottom-right corner grip ⤡.
  4. Repeat for Right Panel (❐ or Alt+2) and 4D Timeline (Alt+3).
  5. WebGL canvas dynamically resizes to 100% remaining space, recalculating projection matrix.
  6. Docking tabs: Hiding a panel with ✕ creates an edge tab (🌳 Left or 📊 Right) to restore it instantly.
  7. Persistence: Custom window layouts persist across sessions via localStorage.
  8. To revert to factory layout, press Alt+0 or select Panels ▾ › ↺ Reset Default Layout.

R.9 FAIR Traceability and Multi-Slice Series Verification in Header (SAMPLE:)

Recipe 9 — Rigorous Traceability and Z-Stack Validation
  1. Select optical slices via File › Load Image / Stack (Ctrl+O) or drag into 3D viewport.
  2. In calibration dialog, specify physical voxel size ($dx, dy, dz$).
  3. Inspect top header: LED turns emerald green (●) indicating loaded physical data, and SAMPLE: shows detected prefix: 📁 cell01 (40 slices).
  4. Hover over block to open provenance tooltip: confirm dimensions ($X \times Y \times Z$), channels, and calibration source.
  5. 2D vs Physical 3D: An isolated 2D slice is tagged 📷 name (2D extruded), cautioning that axial depth is synthetic and not citeable for biological volume quantification.
What's New

What's New in this Version (Builds 018893 to 018900)

Summary of enhancements in this release, including the underlying scientific justification and relevant manual sections. All enhancements were verified with objective quantitative benchmarks prior to deployment; cited metrics reflect observed empirical validation data.

DomainWhat ChangedScientific SignificanceReference
Robust Live Voice Live voice model dynamically resolves against available keys in user quota (falls back smoothly if unavailable); sessions validate only after handshake acceptance; automatic recovery on 10-min boundaries; detailed diagnostic error reporting; «Test Connection» validates live voice duplex. Replaces deprecated models (gemini-2.0-flash-exp) and fixes premature session state flags that caused silent fallback to text. Modernizes audio streaming protocol. Chapter 24.5
Fluid Large Volume Rotation If full-resolution frame rendering exceeds ~33 ms, real-time rotation drops to half-resolution and seamlessly restores full-resolution on mouse release; progressive refinement capped at 8 samples per segment. Benchmarked on Apple M4 with Retina display on a 1628 × 2048 × 56 light-sheet stack: interactive framerate increased from 12 to 43 fps during rotation. Faithful Visualisation
Anisotropic Voxel Classifier Feature descriptor spatial scales calibrated in physical micrometers across all three axes; axial gradient calculated per micrometer. At 0.2 × 0.2 × 1.0 µm, a «σ = 4» filter previously spanned 4 µm along Z. Ground-truth benchmark IoU improved from 0.878 to 0.951. Isotropic and 2D modes remain strictly identical. Chapter 15
Accelerated Colocalisation & Redundant LUT Handling Integer math pathways run 1.4× to 2.1× faster with bit-for-bit exactness; deferred on massive stacks until «Calculate» is pressed. Alert and resolution button appear when two channels share identical false-color LUTs. In Intro.lif, three series contain two channels mapped to the «Green» LUT. Chapters 5 and 9
Unbounded Massive Image Handling Volumes exceeding 512 Mvoxels or 1 GB/channel skip automatic segmentation on load/channel switch (exceeding 128 Mvoxels disables live threshold re-run); segmentation triggers explicitly via «Create Surfaces» with memory warnings. 3D texture uploads are chunked and threshold histograms cache per channel. For an 859 Mvoxel whole-brain light-sheet dataset, loading previously frozen the tab for 18 s and auto-segmentation exceeded 20 min and 12 GB. Now: 7 s load time, stalls under 2 s, memory capped at ~3.6 GB; Blend to MIP transitions are instant. Chapter 2.1 bis
Inter-Slice Cubic Interpolation In Blend mode, when slice spacing exceeds 4× in-plane texture pixel size, cubic B-spline interpolation activates along Z («Inter-slice» selector). In MIP, «Auto» calculates display window directly over maximum intensity projection. Eliminates ring and banding artifacts across 100 µm spaced light-sheet planes; whole-organ MIPs no longer saturate white due to voxel window clipping. Faithful Visualisation and Chapter 5
Physical Channel Scaling for Surfaces Threshold slider spans 0 to actual dynamic channel maximum. Previously clamped at 0–255: for 12-bit or 16-bit acquisitions, manual thresholds could not exceed 255 and coverage metrics were corrupted. Chapter 6
Ring-Free 3D Volume Rendering Per-pixel ray offsets (dither jitter), ray-marching through tissue at 1 texel per step, and progressive supersampling on mouse release or export. Eliminates concentric dark/bright sampling rings during adaptive downsampling. In test volumes, PSNR improved from 28 to 46 dB relative to 1000-step ground truth; MIP and tonal fidelity preserved. Faithful Visualisation
Microscope Contrast & Pseudocolors Files open preserving native false colors, display window, and gamma embedded in metadata (e.g., Zeiss Zen settings in CZI); fallback autowindowing computes robust 0.1–99.9th percentiles. Color tables: Grayscale, Fire, Viridis, Magma, Inferno, Turbo per channel in 2D and 3D. Prevents 12–16 bit raw fluorescence from rendering nearly pitch black under min–max defaults. Auto-segmentation overlays no longer obscure underlying intensity. Chapter 5 and Faithful Visualisation
Zeiss Lightsheet & Native Production Files Multi-view and dual-illumination CZIs open per view, with illuminations fused via average or kept separate (previously overwritten). 3D volumes supported up to 512 MB and 2048 px per axis. Validated bit-for-bit against czifile and readlif across real acquisitions: 5 CZIs (3 Lightsheet with multi-angle/dual illumination or 2×2 tile mosaic; one 32-tile 4.5 GB mosaic; one 5-channel field) and 2 LIF projects (17 series). Chapters 2.1 and 16.1
Spots: Anisotropic Ellipsoidal Model XY radius and axial elongation (Z/XY) controls in wizard; DoG filter with per-axis σ in µm; local background computed as median of an ellipsoidal shell between 2 and 3 radii. Clarified «Radius» label (down to 0.1 µm). Across 12 ground-truth scenes, F1 improved from 0.978 to 0.991 and background error dropped from 34 to 2.5 gray levels; corrected intensity is independent of Z step. Chapters 7.1 bis and 7.2
Anisotropic 3D Segmentation Gaussian smoothing enforces uniform physical σ in µm across all three axes (replacing uniform voxel-based kernel). With axial steps of 0.3–1.0 µm, F1 improved from 0.74 to 0.98 (isolated nuclei) and 0.67 to 0.94 (dense clusters); 2D mode unaltered. Automatic Segmentation
Batch Processing Wizard Parity Batch surfaces inherit exact segmentation algorithms and parameters from wizard (exact auto-adjusted values from pilot image); fully reported in CSV. Previously, batch processing ran raw intensity isosurface extraction, diverging from interactive analysis. Counts now match exactly (1135 = 1135 in verification stack). Reproducibility Chapter
Multi-Threaded Parallel Analysis In large stacks, segmentation and spot detection distribute chunks across Web Workers (up to 6 threads based on hardware concurrency). Watershed eliminates per-voxel JavaScript queue overhead. On a 630 MB volume: segmentation accelerated from 12 s to 4.3 s, spot detection from 38 s to 14 s (Chrome), with single-thread identical output; watershed RAM dropped from 1.1 GB to 148 MB per 10 Mvoxel chunk. Chapter 2.1 bis
Large File Streaming Files read chunk-by-chunk and slice-by-slice without 2 GB Chrome memory limits. In import dialog, «Image Memory» allows allocating beyond the default 1.6 GB ceiling on 16/32 GB systems. A 2.4 GB OME-TIFF loads in ~15 s; with 3 GB allocated, processes at 100% native resolution. Chapter 2
Zeiss CZI & Leica LIF Parsers Rewritten strictly to binary specifications: uncompressed and Zstd CZI with scenes/mosaics; multi-series LIF containers. Calibration, channel names, and temporal sampling read directly. Presents bit-for-bit concordance with official python readers (czifile, readlif). Chapters 2 and 16
Full 4D Temporal Series Full timepoint import for OME-TIFF, TIFF hyperstack, LSM, CZI, and LIF, adopting embedded Δt intervals. 4D playback and tracking engine utilize true physical time intervals without manual entry. Chapter 2
Chunked Block Analysis Segmentation, spot detection, and meshing of large volumes run in overlapping sub-blocks at native resolution. Colocalisation removes 8-byte/voxel duplication. Yields identical output to global processing with a fraction of RAM; spot detection on 630 MB stacks completes in ~50 s instead of >4 min. Chapter 2
Richardson-Lucy Deconvolution Full 2D and 3D iterative restoration. Theoretical Gaussian PSF synthesized from λ, NA, and refractive index n; generates a dedicated restored channel with quantitative convergence metrics. On Poisson-corrupted synthetic phantoms, correlation with ground truth increases from 0.21 to 0.74 while strictly conserving total radiant flux (× 1.02). Chapter 24.3
Machine Learning Spot Filtering User-curated positive/negative training spots feed a 20-tree Random Forest across 8 spatial and intensity descriptors; probability slider isolates true signals. Discriminates true subcellular foci from autofluorescent lipofuscin or debris with verifiable out-of-bag (OOB) error logging in Methods. Chapter 19
Channel Masking Dedicated masking block in Surfaces Wizard: generates binary masked channels (inside/outside objects) and computes compartmental fractional intensities. Quantifies organelle-specific protein translocation; prevents circular colocalisation artifacts. Chapter 20
.mtzwf Workflow Recipes & Auditing Workflows record every execution step and seal with SHA-256 integrity signatures verified on import; pixel saturation warnings; voxel-based workflows explicitly tagged as uncalibrated. Enforces unambiguous provenance and FAIR reproducibility in Methods reporting. Chapters 17 and 24.6
AI Assistant Right panel AI tab, «AI Assistant» header button, and Ctrl/⌘ + K. Specialized agent modeled after an expert biomedical microscopist, pathologist, and bioinformatician that executes real pipelines in the application and grounds answers in quantitative measurements. Automates repetitive analysis pipelines and grounds every statement on empirical metrics and this Manual. Zero synthetic hallucination. AI Assistant
Automatic Segmentation Upon loading an image, nuclei (or dominant signal channel) are segmented automatically with parameters measured dynamically from the image. F1 = 0.899 (BBBC039) and 0.790 (DSB 2018) vs 0.005 with fixed defaults, benchmarked across 29,438 expert-annotated nuclei. Automatic Segmentation
Exact 2D Visualisation Linear transfer, native min–max clipping, 1:1 pixel rendering, and original file orientation. 2D segmented objects render as crisp vector contours over the image. At 100% zoom, on-screen pixels match source data bit-for-bit (mean absolute error: 0.000 gray levels). Faithful Visualisation
3D Volume Fidelity Native resolution up to GPU texture limits; 16-bit floating-point textures; true max-intensity preservation in MIP; non-darkening Blend transfer functions with per-voxel opacity. Fine detail correlation with raw data: 0.125 → 0.947; sub-resolution spot visibility: 38% → 97%. Faithful Visualisation
4D Dynamic Series Clicking PLAY updates the 3D volume at every timepoint. On-screen timer adopts true physical acquisition delta. Visualisation and quantitative measurements belong strictly to the identical temporal frame. 4D Dynamics
Intelligent Channel Selection Automatic channel selector rejects empty background channels and derived mathematical channels. In vascular samples where DAPI is absent, auto-segmentation targets vascular GFP rather than failing with 0 objects. Automatic Segmentation
Unified Ergonomic Interface Consistent typographic scale (12 px UI, 14 px icons, 32 px toolbars / 44 px touch targets). 1:1 vector Vantage plots with 1 px hairline strokes. Persistent «✕ Close Vantage/Arena» button and Esc shortcut. Homogeneous legibility across displays; publication-ready scientific vector exports. Quick Guide
AI

AI Assistant: Biomedical Expert and Autonomous Agent in the Suite

The assistant serves two simultaneous roles. As a consultant, it provides scientific rationale with the domain expertise of a doctoral researcher in optical microscopy, anatomical pathology, microbiology, quantitative cell biology, genetics, and biostatistics. As an operator, it autonomously executes analysis pipelines within the suite: loading data, segmenting, counting, measuring, cross-correlating channels, tracking 4D trajectories, generating publication figures, and drafting methodology sections, evaluating step results before executing subsequent actions.

Research Use Only — Not for In Vitro Diagnostics
MTZ² is a scientific research software application. It is not a certified medical device for in vitro diagnostic use (Regulation (EU) 2017/746, IVDR). The assistant can explain the biological and literature context of observations, but no quantitative output constitutes clinical diagnosis, prognosis, or therapeutic recommendation: clinical decisions require certified diagnostic devices, validated protocols, quality controls, and licensed medical specialists.

Setup and Connection

  1. Open via the AI tab in the right panel, the 🤖 AI Assistant button in the header, or Ctrl/⌘ + K. In voice mode, audio queries route directly to the agent.
  2. Click ⚙ to open the AI Hub, choose your provider, enter your API key and model identifier, then click Test and Save. The green indicator in the panel header confirms readiness.
  3. Type or dictate your prompt. Enter sends; Shift + Enter adds a new line; Stop (or Esc inside the prompt box) halts the agent immediately.
ProviderModelsBest Suited For
Anthropic Claude (Recommended) claude-sonnet-5 (Default), claude-opus-5, claude-haiku-4-5 Highest reliability in multi-step tool orchestration and quantitative rigor. Opus for complex biophysical hypotheses; Haiku for rapid execution and low token cost.
Google Gemini Flash and Pro models available in Hub Generous free-tier rate limits; well-suited for interactive queries and concise workflows.
OpenAI Standard models in Hub or compatible endpoint General-purpose alternative; compatible with on-premise institutional OpenAI-compliant proxies.
Local Server (Ollama) Tool-calling models (e.g., llama3.1, qwen2.5) Strict privacy environments where zero text data may leave local hardware. Requires CORS authorization on server (OLLAMA_ORIGINS).
Data Privacy and Cost Governance
Only sanitized text metadata is transmitted to the provider: the conversation history, structured state summary (channel names, dimensions, physical calibration, wizard parameters), and quantitative tool outputs. Raw image pixels and 3D voxels are never transmitted. API keys are stored exclusively in local browser storage, and usage is billed directly to the user's provider account. Never paste protected health information (GDPR/HIPAA compliance).

Capabilities & Supported Tools

CategoryToolsExample Query
InspectSession state; descriptive metrics (n, mean, SD, median, 95% CI via Student's t); manual search«What is the mean equivalent diameter of segmented nuclei?»
LoadBuilt-in demo samples; file selection prompt (browser security requires user click on «Choose Images»)«I want to load my liver CZI datasets»
Visualise2D / 3D / 4D, Blend / MIP, camera angles, workspace layouts; channel visibility, LUTs, display window, gamma«Show only GFP channel in MIP mode from the top view»
AnalyzeSurfaces (auto-adjust or parameters), spots, colocalisation, filaments & Sholl, 4D tracking, series playback«Run LAMP1 vs protein X colocalisation with Costes significance test»
ExportMeasurement CSVs, HD viewport snapshots, Materials & Methods text, STL/OBJ meshes«Draft a publication methods paragraph describing this analysis»
UI NavigationOpen wizards and panels; interact with buttons when dedicated tool calls are not assigned«Open the filament tracing wizard»

Actions that destroy or overwrite user data — closing images, overriding results, clicking deletion triggers — require explicit user confirmation via an on-screen dialog card. If the user clicks «No», the assistant immediately aborts that action.

Autonomous Execution Loop

Requests are resolved iteratively: the model determines required tool invocations, the suite executes them in the browser engine and returns quantitative results, and the model determines subsequent steps until the objective is fulfilled (up to 16 iterations per prompt). Each intermediate step renders in chat with its output. Wizard input fields update live in the UI, allowing researchers to inspect and manually adjust parameters.

  • Zero numerical hallucination: Metrics are exclusively reported from tool execution outputs. Unmeasured values are explicitly flagged as such.
  • Measurements vs Geometric Models: Surface areas and volumes are extracted from voxel isosurfaces; equivalent diameters assume spherical/circular geometry.
  • Calibration Auditing: Flags when physical metric units depend on unverified default voxel calibrations.
  • Biophysical Limitations: Highlights border-truncated objects, intensity saturation, small sample sizes (n), axial elongation, and pseudoreplication.
  • Literature Grounding: Formally cross-references theory and methods with sections in this Manual.

Domain-Specific Query Examples

FieldPromptAssistant Execution Flow
Getting Started«Load the mitosis sample and explain what I am observing»Loads 4D series, identifies channels and mitotic phases, runs segmentation, and summarizes volume kinetics.
Histopathology«Segment DAPI nuclei and Ki-67 positive cells in channel 2, then compute the proliferation index with 95% CI»Segments both channels, calculates proportion with Wilson score intervals, and details validation caveats.
Microbiology«Count live (green) and dead (red) bacteria and report viability percentage»Segments channels using calibrated bacterial diameters, computes viability ratio, and notes aggregation clumping.
Cytogenetics«Count HER2 (red) and CEP17 (green) FISH signals per nucleus»Segments nuclei, quantifies spots of each probe within nuclear boundaries («Cells + Spots» mode), and outputs copy number ratio.
Neuroscience«Trace the neuron and calculate Sholl analysis with 2 µm concentric step»Extracts filament graph, measures total branch length, critical radius, and exports Sholl cross-intersection profiles.
Cellular Dynamics«Track macrophage motility with 30 s time interval and calculate mean velocity and MSD»Sets temporal interval, runs 4D trajectory linkers, and summarizes velocity, total displacement, and mean squared displacement.
Theory & Teaching«Why is axial resolution inferior to lateral, and what Z-step satisfies Nyquist for 63×/1.4 NA?»Details 3D PSF optics and computes exact Nyquist axial step, citing the Manual.
Publication«Prepare an overhead MIP figure with DAPI blue and GFP green, take an HD snapshot, and write the Methods paragraph»Adjusts orthographic camera, sets LUTs, takes high-DPI export, and produces publication-ready text.
Interactive Conversation Example

User: «Count nuclei and give me the mean area.»

  1. Inspecting session state → 2D image 1920 × 1920 px, voxel 0.4 µm, default calibration.
  2. Segmenting objects (auto-adjust) → 641 objects; measured diameter 20.2 µm; SNR 13:1.
  3. Reading quantitative metrics → area: n = 641, median 285 µm².

Assistant: «I have segmented 641 nuclei using data-driven parameters (local Otsu thresholding, persistence-based watershed). The median area is 285 µm². Note: calibration relies on default assumption (0.4 µm/pixel); if your sensor has different pixel dimensions, area values scale quadratically. 14 oversized objects were excluded as potential unseparated clumps.»

Troubleshooting

Error ConditionLikely CauseCorrective Action
«Invalid API key or unauthorized»Typo in key, revoked token, or depleted billing balanceGenerate a fresh API key in provider console and update in ⚙.
«Model not found or unavailable»Model deprecated or excluded from tierSelect a current model in ⚙ (deprecated Claude 3.x aliases route automatically to Sonnet 5).
«Rate limit exceeded or quota exhausted»Requests per minute exceeded or free tier cap reachedWait 60 s or upgrade provider tier limit.
«Failed to connect»Network offline, corporate proxy firewall, or local daemon offlineVerify network access; for Ollama, confirm daemon is running and OLLAMA_ORIGINS is configured.
«Local model does not support tool calling»Model lacks function calling capabilitiesSwitch to llama3.1, qwen2.5, or certified tool-calling model.
Segmentation

Automatic Segmentation on Load: Methodology, Validation & Boundary Limits

Upon loading an image, MTZ² autonomously segments objects within the nuclear/primary signal channel and reports quantitative measurements without requiring manual threshold adjustments. Parameters are not fixed defaults: they are measured dynamically from each individual image, as pixel nuclear footprint, background noise, and illumination gradients vary across objectives, detectors, staining protocols, and tissue architectures. With static parameters, reference pipelines fail to isolate intact cellular morphology (F1 = 0.005).

Execution Sequence on Load

  1. Target Channel Selection: Matches metadata labeled DAPI, Hoechst, DRAQ5, or Nucleus; lacking labels, selects emission < 500 nm or blue pseudocolor; otherwise resolves to the channel with the highest integral signal. Derived mathematical channels and blank background channels are strictly excluded.
  2. Dynamic Parameter Auto-Tuning: Runs in an isolated Web Worker thread (zero main-thread UI freezing): extracts characteristic object diameter, optimal Gaussian smoothing σ, local threshold partition, and seed persistence.
  3. Segmentation & Morphometry: Measures each segmented object: surface area (2D) or volume (3D), equivalent spherical/circular diameter, mean and peak intensity, and centroid spatial coordinates.
  4. Interactive Visual Representation: In 2D, renders crisp yellow vector contours tracing pixel boundaries without masking fluorescence intensity; in 3D, constructs Marching Cubes isosurfaces. The Surfaces Wizard reports empirical parameters with the badge «Parameters measured from this image».

Mathematical Methodology

  1. Representative Working Plane: For 3D stacks, targets the optical plane with maximal integrated intensity. If plane dimensions exceed 1024 px, downsamples via area-averaging blocks (never nearest-neighbor decimation) solely to calibrate parameter metrics.
  2. Empty Field Rejection: Global Otsu thresholding identifies two populations separated by contrast $\Delta$. Uncorrelated photonic noise is estimated via robust median absolute difference between adjacent pixels: $$\hat\sigma = \frac{1.4826\,\operatorname{median}\lvert I_{x+1}-I_x\rvert}{\sqrt{2}}$$ If $\Delta < 4\hat\sigma$, the FOV is flagged as an empty field: «no objects emerge from background noise floor». Prevents false-positive artifact hallucination in empty culture wells.
  3. Gaussian Smoothing Sweep: Evaluates filter kernels $\sigma \in \{0, 1, 1.5, 2, 3, 4, 6, 8, 12\}$ pixels (terminating when $\sigma > d/5$). For each kernel, thresholds and computes region isoperimetric compactness, $C = 4\pi A / P^2$ (area-weighted median). Selects the minimal $\sigma$ achieving 95% peak compactness: eliminates high-frequency sensor grain without merging adjacent nuclei.
  4. Characteristic Equivalent Diameter: $d = 2\times$ area-weighted median of maximum Euclidean distance transform depths across regions.
  5. Adaptive Local Thresholding: Evaluates local Otsu partitions within sliding tiles of side $3d$, compensating for uneven field illumination. If candidate objects exceed 1/6 total FOV (whole organism autofluorescence or thick tissue halo), tiles reduce to 1/8 FOV.
  6. Persistence-Based Watershed Separation: Watershed seeds originate from Euclidean distance transform peaks whose topological persistence exceeds $h = 0.2\,r$ (h-maxima transform); flooding runs over the gradient mask. Separates abutting nuclei along physical concavities rather than artificial straight lines, preserving seeds for small intact nuclei.
  7. Biological Size Gating: Enforces area boundaries from 5% to 400% of nominal area $\pi (d/2)^2$ in 2D, and 5% to 600% nominal volume in 3D. For a 10 µm nucleus: bounds span 3.9 µm² to 314 µm².

Empirical Benchmark Validation

Validated against expert ground-truth manual segmentations from standardized public bioimage repositories across withheld test splits. Detections count as true positives when intersection-over-union (IoU) with ground truth exceeds 0.5: $$\text{IoU} = \frac{|A\cap B|}{|A\cup B|},\qquad P = \frac{TP}{TP+FP},\quad R = \frac{TP}{TP+FN},\quad F_1 = \frac{2PR}{P+R}$$

Benchmark DatasetDescriptionF1 (Static Defaults)F1 (Auto-Tuned)
BBBC039 (Broad Bioimage Benchmark Collection)U2OS osteosarcoma nuclei stained with Hoechst, expert masks; withheld test split0.0050.899
BBBC038 / Data Science Bowl 2018Diverse fluorescence subset, variable cell types & magnifications; withheld test split—0.790

Evaluated across 29,438 expert-annotated nuclei. Persistence-based topological separation outperformed static distance-peak spacing in 297 of 374 benchmark images, and non-cellular negative controls correctly flagged zero objects.

Worked Example — Tissue Section Nuclei

Histological tissue section: 1920 × 1920 pixels, DAPI nuclear staining with green and red immunofluorescence markers.

  1. Loading selects blue channel and computes parameters: characteristic diameter 20.2 µm, smoothing σ = 1.2 µm, local Otsu in 13 × 13 tiles of 60.7 µm, SNR 13:1.
  2. Output (3.2 s compute time): 641 surfaces; 845 initial candidates; 190 filtered as sub-resolution debris and 14 as oversized clumps; median area 285 µm².
  3. Interpretation: The 14 oversized candidates reflect unseparated multi-nuclear clusters; review in Objects catalog prior to data export.

Manual Intervention Criteria

  • Adjusting any slider (steps 2–5 in wizard) switches to explicit manual override and dismisses the auto-tune badge. Click «✨ Auto-adjust to this image» to recalculate.
  • Manually moving the threshold slider converts algorithm to fixed intensity isosurface mode.
  • Faint nuclei in dense tissue: local Otsu may underestimate edges; lower threshold slider or decrease tile dimensions.
  • Cytoplasmic or membranous markers: algorithm targets compact convex morphology; utilize Random Forest Classifier or manual 2D vector contours.
  • Diffraction-limited sub-resolution foci (endosomes, FISH signals): use Spots Wizard rather than Surfaces.
3D Stacks with Anisotropic Voxels

The preceding benchmark applies to 2D fields. In 3D volumes, Gaussian smoothing enforces identical physical σ in micrometers across all three axes, adjusting voxel kernel radius along Z when axial step size exceeds lateral pixel dimensions. Prior to Build 018900, axial smoothing used identical pixel kernel sizes: with $dx = 0.2\,\mu\text{m}$ and $\Delta z = 1.0\,\mu\text{m}$, axial filtering was 5× stronger than intended, artificially merging adjacent nuclei along the optical axis. In a synthetic 3D ground-truth phantom (42 nuclei/scene, chromatin texture, confocal PSF, Poisson noise; $\Delta z \in \{0.3, 0.6, 1.0\}\,\mu\text{m}$), anisotropic correction improved F1 from 0.738 to 0.982 for separated nuclei and from 0.668 to 0.937 for axially stacked nuclei, increasing mean IoU from 0.71 to 0.84 and dropping axial merge errors from 4.2 to 0.5 per stack. 2D calculations are unaffected.

Known Limitations
Severe axial overlap in thick optical sections with low axial NA; unimodal histograms lacking discernible background peaks; peripheral objects intersecting FOV borders (flagged with border warnings; discard from whole-cell morphometry). Validation on nucleic acid stains does not guarantee identical accuracy across arbitrary organelles; validate against a curated annotated subset of your experimental model.
Visualisation

Faithful Visualisation: Raw Acquisition Fidelity (2D, 3D & 4D)

Quantitative bioimaging is interpretable only if on-screen visual representations correspond strictly to photon fluxes registered by the detector. MTZ² renders images free from undeclared non-linear transformations and verifies pipeline integrity through objective bit-level tests against raw files.

2D Planar Imaging

  • Linear Dynamic Range: Bypasses sRGB gamma distortions and covert contrast stretching. Files initialize adopting display windows stored in metadata — in Zeiss CZI, adopts native Zen channel LUTs, min–max black/white points, and gamma; in RGB, spans full dynamic range — falling back to robust automatic percentiles (0.1% low / 99.9% high saturation clip), mirroring standard desktop scientific imaging suites. Min–max defaults in 12–16 bit microscopy render near black due to sparse cosmic ray outliers; Auto and Full toggles adjust visual stretch without altering underlying raw voxel values.
  • Per-Channel LUTs & False Color Palettes: Standard monochrome or scientific colormaps (Grayscale, Fire, Viridis, Magma, Inferno, Turbo) combined via additive physical blending. Single-channel colormaps reveal subtle intensity gradients lost in monochrome displays; embedded Leica and Zeiss palette tables apply automatically.
  • Native Resolution & Interpolation: Preserves full pixel resolution up to GPU hardware limits. Zooming out uses trilinear mipmapping to prevent moiré aliasing; zooming in renders nearest-neighbor texels, avoiding interpolation of synthetic intensities.
  • File Coordinate Orientation: Matrix row 0 maps to viewport top in 2D, maintaining strict parity with 3D orientation.
Validation Verification
At 100% zoom, rendered 2D viewports match source files bit-for-bit (mean absolute pixel error: 0.000 gray levels; mirror-flipped control yields 24.4 and single-pixel shift yields 4.2). In fit-to-screen mode, fidelity against reference high-quality bicubic downsampling achieves ~32–33 dB PSNR, bounded solely by low-pass anti-aliasing; integrated brightness and saturation match source data exactly.

3D Volume Rendering Engine

  1. Native Volumetric Resolution: Renders up to GPU hardware limits (standard 3D texture dimensions: 2048³ voxels) within a dedicated VRAM budget (512 MB desktop; 128 MB mobile/integrated). When downsampling is required, decimation targets the finest spatial axis first: in XY, scales by the exact fractional factor to meet bounds (a 4969 × 6254 px mosaic downsamples to 1628 × 2048 with factor 3.05, whereas integer factor 4 would over-decimate to 1243 × 1564); in Z, preserves integer optical planes. In Blend mode, downsampled voxels compute local averages; in MIP mode, voxels preserve local maxima, ensuring sub-resolution single-voxel point emitters are never lost. Large volumes exceeding 2048 px render downsampled in 3D (quantitative analysis runs at 100% native resolution); inspect critical features in 2D or Orthogonal Slicers at full native resolution.
  2. Bit-Depth Preservation: High-bit acquisition data (12, 14, 16 bits) are stored in 16-bit half-precision floating-point textures (quantisation error < 1 count in 12-bit data; standard 8-bit textures produce 8-count banding under narrow display windows). 8-bit acquisitions load losslessly.
  3. Premultiplied Optical Color: In MIP mode, rendered on-screen intensity tracks data linearly (low intensities: 24.5 → 25.0; midtones: 96.1 → 95.4 levels without artificial stretching). Eliminates midtone dimming artifacts common in legacy WebGL ray-marchers.
  4. Physical Ray-Marching Opacity: In Blend mode, computes attenuation along physical optical path lengths (accounting for ray direction in anisotropic voxels), applying a quadratic ramp to prevent background autofluorescence from obscuring deep internal structures.
  5. Jittered Ray Sampling (Elimination of Woodgrain Rings): Ray sampling starts with per-pixel stochastic dithering, accompanied by adaptive refinement (up to 8 samples) at volume boundary entry points. During interactive camera rotation, ray-step intervals adapt to maintain high framerates; on release and during figure export, high-sample supersampling renders a converged frame. Eliminates concentric dark/light sampling rings («woodgrain artifacts») absent in raw data. In test phantoms with coarse 10-voxel step sizes, image PSNR improved from 28 to 46 dB relative to a 1000-step ground-truth render.
  6. High Axial Anisotropy (Coarse Z-Sampling): When axial spacing greatly exceeds lateral pixel size (e.g., whole-organ light-sheet with 100 µm slice intervals and 1.9 µm pixels), slices represent thick optical slabs and curved organ surfaces present stepped contours resembling topographic contour maps. This reflects physical sampling limits, not rendering defects. Standard linear interpolation produces harsh banding edges; in Blend mode, when Z-step exceeds 4× in-plane pixel size, MTZ² applies a cubic B-spline along Z, smoothing slab edges without synthesizing artificial structures (attenuating isolated single-slice signals to 2/3 peak). MIP mode strictly maintains linear interpolation to preserve photometric peak intensities. Configure via Properties › Inter-slice (Blend): Auto or Linear. Where surfaces run parallel to the optical axis, step profiles remain visible; inspect fine cellular architecture in native 2D slices.
  7. Interactive Fluidity: If full-resolution ray-marching exceeds ~33 ms/frame, interactive rotation drops to half-resolution (1/4 ray count), immediately executing a high-precision converged pass on mouse release. Subsequent rotations on that volume initialize in fast mode. On an Apple M4 with Retina display and a 1628 × 2048 × 56 light-sheet stack: interactive framerates rose from 12 to 43 fps during rotation, with a 360-step converged final pass rendering in 0.3 s on release.
Benchmark (1024 × 1024 × 24 stack, 1 px filaments & spots)Legacy Engine (256³, Nearest Neighbor)Modern MTZ² Engine
Rendered MIP vs Raw Data MIP Correlation0.4360.946
High-Frequency Detail Correlation (High-Pass)0.1250.947
Sub-Resolution Spot Detectability38%97%

Choosing Between Blend and MIP

  • MIP (Maximum Intensity Projection): Ideal for sparse, bright fluorescent structures — puncta, vesicular trafficking, dendritic spines, microvasculature. Displays peak intensity along the line of sight without obscuring internal nodes, but sacrifices depth occlusion cues.
  • Blend (Alpha Compositing): Essential for evaluating 3D spatial organization, tissue boundaries, and anatomical occlusion. Raise the display window black level above the specimen background noise floor to prevent hazy volumetric occlusion.

4D Dynamic Time-Lapse Series

During 4D playback, each timepoint loads its dedicated 3D volumetric frame, dynamically updating isosurfaces if channel parameters vary. Elapsed display time calculates as timepoint index × interval, adopting the acquisition delta declared in the Tracking Wizard (matching kinematics calculations).

Applications

Biomedical Applications: Solved Case Studies by Discipline

Standard biomedical research workflows solved from hypothesis to publication: acquisition guidelines, MTZ² execution steps, AI Assistant prompt equivalents, reporting standards, and mandatory negative/positive controls. Numerical values in examples are illustrative; clinical staging criteria must be cross-referenced against current authorized clinical guidelines.

Nyquist Sampling Criteria by Specimen Type

Theoretical confocal resolution (1.0 Airy pinhole): lateral $d_{xy} \approx 0.51\,\lambda/\mathrm{NA}$; axial $d_z \approx 0.88\,\lambda / \left(n - \sqrt{n^2-\mathrm{NA}^2}\right)$. Nyquist criterion dictates voxel dimension $\le d / 2.3$. For a 63×/1.40 oil immersion objective ($n = 1.518$) at 520 nm emission: $d_{xy} = 189$ nm and $d_z = 491$ nm, requiring pixel pitch $\le 82$ nm and axial step $\Delta z \le 214$ nm.

Biological TargetCharacteristic SizeRecommended OpticsMTZ² Tool Module
Mammalian Nucleus8–20 µm20×/0.75 for counting; 40–63× for chromatin morphometrySurfaces (Auto-tune)
Human Erythrocyte≈ 7.5 µm diameter40–63×Surfaces / Spots
Yeast (Candida albicans)3–6 µm63×/1.4Surfaces
Bacillus (Escherichia coli)≈ 0.5 × 2 µm63–100×/1.4; pixel ≤ 0.08 µmSurfaces (diameter ~1 µm)
Coccus (Staphylococcus aureus)≈ 0.5–1 µm100×/1.45Spots or Surfaces
Mycobacteria≈ 0.3 × 2–4 µm100×/1.45Surfaces / Filaments
FISH Signal, γH2AX Focus, Synaptic Vesicle≈ 0.2–0.5 µm (Diffraction Limit)63–100×/1.4Spots Wizard
Virion20–300 nm (Sub-diffraction)Detected exclusively as unresolved puncta without morphologySpots Wizard

Histopathology: Ki-67 Proliferation Index via Immunofluorescence

Protocol — Quantifying Ki-67 Positive Nuclear Fraction

Acquisition: DAPI (Channel 1) and Ki-67 (Channel 2), 20–40× magnification, identical laser power and detector gain across test cohorts and controls.

  1. Segment DAPI nuclei using Auto-tuning: total nuclear count $N$.
  2. Select Ki-67 channel in Surfaces and segment: positive nuclei $k$. Lock threshold using positive and negative tissue controls; maintain identical threshold across study cohort.
  3. Compute proliferation index $p = k/N$ with asymmetric Wilson score 95% confidence intervals: $$\frac{p + \frac{z^2}{2N} \pm z\sqrt{\frac{p(1-p)}{N}+\frac{z^2}{4N^2}}}{1+\frac{z^2}{N}}$$

Example Output: $k = 187$ of $N = 812$ → 23.0% (Wilson 95% CI: 20.3–26.0%).

AI Assistant Prompt: «Segment DAPI nuclei and Ki-67 positive cells in channel 2, then compute the proliferation index with 95% CI».

Controls & Pitfalls: Exclude stromal fibroblasts and infiltrating lymphocytes (via ROI selection or Random Forest Classifier); evaluate adequate cell counts across representative tumor regions (International Ki67 in Breast Cancer Working Group recommends several hundred nuclei); beware formalin-induced tissue autofluorescence; diagnostic cut-offs vary by tumor type and institutional pathology guidelines.

Microbiology: Bacterial Viability & Biofilm Architecture

Protocol — Live/Dead Bacterial Assays (SYTO 9 / Propidium Iodide)

Acquisition: 63–100×/1.4 oil immersion; Green (SYTO 9, membrane-permeant, total cells) and Red (Propidium Iodide, membrane-compromised, dead cells).

  1. Segment red channel (dead cells, $m$) and green channel (live cells, $v$); ensure measured diameter is calibrated to ~1 µm.
  2. Calculate viability ratio $= v/(v+m)$. Example: $m = 186$ of 1426 total cells → 13.0% mortality (95% CI: 11.4–14.9%).
  3. 3D Biofilm Quantification: Biovolume $= V_{\text{total}}/A_{\text{field}}$ (µm³/µm²). Example: 152,300 µm³ across a 212 × 212 µm FOV → 3.39 µm³/µm².

Controls: Heat-killed or 70% isopropanol-treated negative control (100% red) and log-phase culture positive control; evaluate transitional dual-stained cells; monitor clumped aggregates (review size-excluded candidates). Optical enumeration does not equal Colony Forming Units (CFU).

Genetics & Cytogenetics: Interphase FISH Analysis

Protocol — Signals per Nucleus and Gene/Centromere Amplification Ratio

Acquisition: 63–100×/1.4 with full 3D Z-stack spanning entire nuclear depth; DAPI, gene-specific probe, and centromeric reference probe.

  1. Segment nuclei (DAPI) and exclude overlapping clusters or boundary-truncated nuclei.
  2. In Spots Wizard, select «Cells + Spots» mode, assign nuclear channel and probe channels, then click «🔬 Analyze Cells and Spots»: quantifies probe foci compartmentalized within each nuclear volume.
  3. Compute mean foci count per nucleus for each probe and determine copy number ratio. Example: 6.2 gene signals and 2.1 centromeric signals → ratio 2.95.

Clinical Context: For HER2/CEP17, interpretation adheres to ASCO/CAP clinical guidelines (copy number ratio and mean gene copies/cell); verify current clinical criteria. In research reporting, provide full single-cell frequency distributions in addition to sample means.

Pitfalls: Optical resolution limits merge closely spaced probe doublets into single foci (underestimating clustered amplifications); truncated axial stacks lose out-of-focus probe signals; thin sectioning clips nuclear volumes.

Cell Biology: Mitotic Index & Chromatin Condensation

  • Segment nuclear volumes and sort the objects catalog by surface area and mean fluorescence intensity, or inspect feature distributions in Vantage 1D: condensed mitotic chromatin (prophase through anaphase) and apoptotic bodies present as hyper-dense, high-intensity punctate volumes.
  • Train the Random Forest Classifier on annotated phenotypic exemplars and cross-validate against specific biomarkers (phospho-histone H3 for mitosis; cleaved caspase-3 or TUNEL for apoptosis).
  • Report indices as proportions with 95% confidence intervals and clearly state the biological replicate sample size ($N$).

Neuroscience: Dendritic Arborisation & Spine Morphometry

  • Filaments Wizard reconstructs neural arbors from soma centroids: quantifies total dendritic length, branch orders, bifurcation nodes, and concentric Sholl analysis profiles (intersections vs radial distance from soma); critical radius identifies peak arbor complexity.
  • Dendritic Spine Classification: head volume, neck length, and morphological taxonomy (mushroom, thin, stubby, filopodia); diameter determined via transversal FWHM and inscribed maximal spheres.
  • Enforce strict Nyquist axial sampling: optical stacks acquired with $\Delta z \ge 1\,\mu\text{m}$ introduce severe axial distortion in spine necks.

Microcirculation & Cell Motility Dynamics

  • Microvascular Networks: trace endothelial markers (e.g., CD31, lectin) in Filaments Wizard → total length, branch density, and vessel caliber.
  • Leukocyte/Erythrocyte Motility in 4D: Tracking Wizard using true physical inter-frame Δt → instantaneous velocity, track displacement, and Mean Squared Displacement (MSD: linear indicates Brownian diffusion; upward curvature denotes directed active transport).
  • Verify calibrated acquisition intervals: kinetic rates scale directly with Δt.

Colocalisation in Pathological Protein Aggregation

Protocol — Lysosomal Translocation of Target Protein X (LAMP1)
  1. Confirm dynamic range without pixel saturation across channels; verify chromatic aberration correction using 100 nm multi-spectral fluorescent beads.
  2. Coloc Tab: Select LAMP1 and protein X channels, enable automated Costes thresholding, and compute Monte Carlo randomization significance ($p$-value).
  3. Report Pearson correlation coefficient ($r$), Manders split coefficients ($M_1, M_2$) alongside empirical thresholds and Costes $p$-value. Example: $r = 0.62$; $M_1$ (fraction of X in LAMP1) = 0.71; $M_2 = 0.34$; $p < 0.01$ (100 Costes randomizations; minimum resolvable $p = 1/N = 0.01$).

Controls: Single-stained specimens to verify absence of fluorophore spectral bleed-through; diffraction-limited optical colocalisation (≈ 200 nm) does not establish direct macromolecular physical interaction: employ FRET or Proximity Ligation Assays (PLA) for sub-10 nm proximity confirmation.

Experimental Design & Statistical Independence
Individual cells within a shared microscopic field, culture well, or tissue slice do not constitute statistically independent biological replicates: the true experimental unit ($N$) is typically the independent animal, patient cohort, or distinct biological culture. Aggregate single-cell metrics to the experimental unit before comparative hypothesis testing, report multi-level sample sizes ($N_{\text{animals}}, n_{\text{cells}}$), state exact test statistics and effect sizes, and employ blinded analysis protocols wherever feasible. De-identify patient clinical images prior to sharing.
Chapter 01

Architecture and Foundations of the Surpass 3D/4D Engine

The Surpass Space environment in MTZ² projects raw biological matrices into a calibrated 3D affine space in physical metric units (micrometers, $\mu\text{m}$). The WebGL graphics pipeline incorporates two primary volumetric projection paradigms:

  • Blended Emission/Absorption Raycasting: Numerically integrates photometric intensities along each camera sightline, simulating physical optical attenuation across thick tissue slices and 3D organoid spheroids.
  • Maximum Intensity Projection (MIP): Extracts the maximal scalar value along each viewing ray onto screen pixels according to:
$$I_{\text{MIP}}(x, y) = \max_{z \in [0, Z_{\max}]} \Big( I(x, y, z) \Big)$$

MIP mode is ideal for resolving dendritic arbors, microvascular capillary networks, and cytoskeletal actin filaments exhibiting high contrast over dark background.

Empty-Space Skipping in GPU Raymarching

In biological fluorescence imaging, uninformative dark background routinely comprises 75% to 92% of total volume. The WebGL volume shader (gpuVolume.js) evaluates if $\max(\text{RGBA}) < 0.002$ and advances with double-step ray increments, skipping expensive trilinear texture lookups and gradient calculations. This accelerates interactive rendering by 3× to 5×, sustaining 60 FPS.

Massive Datasets: Chunked Streaming & Block-Based Processing

Files stream slice-by-slice without preloading raw gigabyte payloads into heap memory. Massive volumes segment and detect spots in overlapping spatial blocks with boundary margins, with background noise thresholds and characteristic scales computed over the global dataset: yielding bit-for-bit identical results to whole-volume processing. Marching Cubes meshes slice-by-slice (identical topology, vertex-by-vertex, with minimal RAM overhead), colocalisation omits 8-byte/voxel duplication, and cryptographic SHA-256 signatures calculate in chunks.

Resolution Decoupling: Textures for Visualisation, Native Floats for Quantification

The WebGL 3D texture renders at native data resolution up to GPU texture limits (typically 2048³ voxels) within available VRAM — otherwise downsampling via box filtering (Blend) or local maxima (MIP), storing high-bit data in 16-bit float textures. Quantitative analysis operates strictly on raw unbinned native voxel arrays within allocated image memory (1.6 GB default, expandable to 8 GB on import); if data exceeds budget, XY downsampling triggers with explicit provenance declaration. Images exceeding 512 Mvoxels or 1 GB/channel skip automatic background segmentation on load (exceeding 128 Mvoxels disables live threshold re-run): segmentation triggers explicitly via Create Surfaces without locking the main browser thread.

Massive Instanced Rendering (THREE.InstancedMesh)

Tens of thousands of detected subcellular vesicles and synaptic spots render through a single unified hardware buffer in a single GPU draw call (1 draw call), compressing CPU overhead from 45 ms to 0.3 ms per frame.

Chapter 02

Data Loading, Import Protocol & Physical Calibration

This is the foundational chapter for publication fidelity. All quantitative metrics expressed in $\mu\text{m}$, $\mu\text{m}^2$, and $\mu\text{m}^3$ represent raw voxel counts multiplied by physical calibration factors. Uncalibrated errors manifest not as software crashes, but as misleadingly plausible numerical inaccuracies.

Supported File Formats:
FormatSupport LevelExtracted File Metadata
TIFF, OME-TIFF & BigTIFF✅ Native DirectRaw uncompressed, LZW, PackBits, and Deflate (with predictors); 8, 16, and 32-bit; Grayscale and RGB; Stripped or Tiled. OME-XML: channels, planes, timepoints, voxel calibration, channel tags, and physical Δt
Zeiss CZI (.czi)✅ Native DirectUncompressed and Zstd; Gray8/16/32 and BGR; channel names, pseudocolor LUTs, emission peaks, physical calibration, time intervals, scenes, and tile mosaics. JPEG XR unsupported (explicit warning)
Leica LIF (.lif)✅ Native DirectAll series; X, Y, Z, T and 8-to-32-bit channels; physical calibration; vendor LUTs; time series. Leica mosaics parse first tile with notice
Zeiss LSM & TIFF Hyperstack✅ Native DirectChannels, Z-planes, timepoints, axial step, and interval (XY calibration entered manually for ImageJ hyperstacks)
PNG / JPEG / WebP✅ Numbered SeriesNatural numerical sorting; uncalibrated default voxels
JPEG Inside TIFF Container⚠️ Lossy CautionOpens with lossy warning: suitable for visual inspection, invalid for quantitative radiometry
Raw Multi-Page Without Metadata⚠️ Declare ChannelsDialog prompts for channel count declaration
Nikon ND2, Olympus OIR/VSI & Others❌ Export to OME-TIFFExport via microscope vendor software or bio-formats converter

Validation: The TIFF reader matches tifffile bit-for-bit across 12 validation suites (compression codecs, predictors, BigTIFF 64-bit offsets, big-endian byte orders, planar RGB, tiled TIFFs, hyperstacks); CZI and LIF parsers match czifile and readlif across synthetic specification files and production acquisitions: 5 CZIs (3 Zeiss Lightsheet with multi-angle/dual illumination or tile mosaics; one 32-tile 4.5 GB mosaic; one 5-channel field) and 2 multi-series LIF projects (17 series). On first loading data from a new instrument, verify dimensions and calibration against vendor software.

Large Datasets & RAM Governance
  • Zero File Size Cap: Streams slice-by-slice (bypassing legacy 2 GB browser limits).
  • Image Memory Ceiling: Automatically defaults to 20% of browser heap allowance (typically 1.6 GB desktop; 0.5 GB mobile). In the import dialog, allocate 3–4 GB on 16 GB machines and 6–8 GB on 32 GB workstations. Datasets exceeding allocation downsample in XY with formal declaration.
  • Analysis Overhead: Peak processing operations require approximately 2.4× base image memory. Absolute channel limit: 231 − 1 voxels.
  • Block Partitioning: Volumes exceeding 16 Mvoxels/channel segment and exceeding 32 Mvoxels detect spots in overlapping chunks, matching global results bit-for-bit. With multi-threading, chunks distribute across Web Workers. 630 MB volume: 1135 objects segmented in ~13 s from file selection, spots in ~14 s; 2.4 GB stack opens and processes in ~15 s.
4D Time-Series Handling

All acquisition timepoints import seamlessly (OME-TIFF, TIFF hyperstack, LSM, CZI, LIF), and embedded frame delta (Δt) routes directly to playback controls and the 4D tracking engine, computing velocities and diffusion coefficients in physical µm/s without manual entry. Total image memory encompasses all timepoints.

JPEG inside TIFF is for visual inspection, not quantitative radiometry. Lossy discrete cosine transform compression irreversibly corrupts photometric detector counts. At quality 95, mean pixel error is 0.7 counts over 256 with maximum error of 6. Re-export uncompressed or LZW for quantification.
ImageJ Hyperstack TIFFs do not require OME-TIFF conversion. The parser reads standard ImageJ hyperstack tags: channels, slices, and axial spacing. XY calibration must be specified if absent from header tags.
Voxel Calibration Sources:

Voxel dimensions cannot be recovered from raw PNGs. Extract values directly from microscope acquisition software:

  • Leica LAS X: Acquisition → Format → Pixel size
  • Zeiss ZEN: Info → Scaling (X/Y/Z)
  • Nikon NIS-Elements: Calibration → Recalibrate
  • Olympus cellSens: Image properties, Calibration property field

The application prompts for calibration before loading, displaying the resulting bounding grid, effective voxel dimensions, and physical FOV in real time. Default values are permanently flagged as assumed in provenance records and the Methods paragraph.

Export in OME-TIFF whenever possible. The embedded OME-XML schema contains standardized PhysicalSizeX/Y/Z attributes that the loader parses automatically, eliminating manual entry and transcription errors.
Multi-Channel Optical Stacks: Page Interleaving

Color consumer photographs store RGB triplets interleaved within each pixel. Confocal stacks do not: each channel is stored as an independent greyscale page within the container, interleaved across optical Z-planes. A 5-channel stack across 20 focal planes comprises 100 distinct TIFF pages.

Parsing 100 pages as 100 focal slices collapses 5 channels into one and artificially stretches the specimen 5× along the optical axis — corrupting all axial distances and volume metrics by a factor of 5.
  • With OME-XML: De-interleaves automatically according to SizeC, SizeZ, and DimensionOrder. Preserves native channel labels.
  • Without OME-XML: Interleaving cannot be inferred from raw pixel bytes; the dialog prompts to declare channel count. Lacking input, pages default to single-channel Z-slices with explicit warnings.
  • Planar RGB: Channels reside within pixel byte tuples.

Arbitrary multi-spectral acquisitions are supported without artificial channel count ceilings.

Resampling & Physical FOV Invariance:

When downsampling a stack in XY, physical voxel dimensions scale by the identical inverse factor simultaneously:

$$N_{\text{voxels}} \times \Delta_{\text{voxel}} = \text{physical FOV} = \text{constant}$$

A $2048 \times 1536$ px field at $0.104\ \mu\text{m}$/px preserves its exact $212.992 \times 159.744\ \mu\text{m}$ physical dimensions across any decimation factor. Aspect ratios are strictly invariant; rectangular fields are never distorted into squares.

Single 2D Images. An isolated 2D image is processed strictly in 2D without synthesizing an artificial Z-axis: objects are measured by surface area (µm²) and rendered as vector boundary contours over the image.
Chapter 03

Loading, Mapping & Analysis of Biological Sequences (FASTA / GenBank)

In correlative microscopy and quantitative fluorescence assays, fluorophores originate from recombinant genetic fusion constructs (e.g., EGFP-Actin, mCherry-Tubulin, Histone H2B) or hybridizing oligonucleotide probes (smFISH / MERFISH).

MTZ² integrates the SequenceLoader engine to parse sequence records in standard FASTA (.fasta, .fa, .fna, .faa) and raw text formats.

>EGFP_Human_Actin_Fusion_Construct [Homo sapiens / A. victoria] Ex:488nm Em:507nm
MVSKGEELFTGVVPILVELDGDVNGHKFSVSGEGEGDATYGKLTLKFICTTGKLPVPWPTLVTTLTYGVQ
CFSRYPDHMKQHDFFKSAMPEGYVQERTIFFKDDGNYKTRAEVKFEGDTLVNRIELKGIDFKEDGNILGH
KLEYNYNSHNVYIMADKQKNGIKVNFKIRHNIEDGSVQLADHYQQNTPIGDGPVLLPDNHYLSTQSALSK
DPNEKRDHMVLLEFVTAAGITLGMDELYKMDDDIAALVVDNGSGMCKAGFAGDDAPRAVFPSIVGRPRHQ
Computed Biophysical & Biochemical Properties:
  • Biopolymer Classification: Automated recognition of DNA, RNA, or Polypeptide (Protein).
  • Estimated Molecular Mass ($M_w$): Calculated in kiloDaltons (kDa) based on empirical residue weights ($\sim 330\,\text{Da}$/nt for DNA, $\sim 110\,\text{Da}$/aa for proteins).
  • GC Content (%): Evaluates thermodynamic duplex stability and nucleotide compositional bias in transgenic constructs.
  • Chromophore Identification: Identifies conserved autocatalytic tripeptide fluorophore motifs (such as Thr65-Tyr66-Gly67 in EGFP and Met66-Tyr67-Gly68 in mCherry), mapping the sequence to its corresponding spectral detection channel.
Using the Sequence Wizard
1. In left panel, open ⚙️ Wizards → 🧬 Biological Sequences (FASTA).
2. Drag and drop your file or use the file picker button.
3. Alternatively, paste FASTA strings directly into the text field and click «Analyze Text».
4. Or click «Load Demo Sequences» in the manual header to inject verified reference constructs for EGFP-Actin, mCherry-Synaptotagmin, and Histone H2B.
Chapter 04

Confocal Optics, Nyquist-Shannon Sampling & Axial Focal Shift Correction

Spatial resolution in fluorescence optical microscopy is governed by light diffraction and the 3D Point Spread Function (PSF):

$$r_{xy} = \frac{0.61 \cdot \lambda_{\text{em}}}{\text{NA}}, \qquad r_z = \frac{2 \cdot n \cdot \lambda_{\text{em}}}{\text{NA}^2}$$

To eliminate spatial aliasing artifacts, the physical voxel grid must satisfy the Nyquist-Shannon sampling theorem:

$$\Delta x, \Delta y \le \frac{r_{xy}}{2.3}, \qquad \Delta z \le \frac{r_z}{2.3}$$
Refractive Index Mismatch Correction (Axial Focal Shift)
When using oil immersion objectives ($n_{\text{oil}} = 1.518$) to image specimens bathed in physiological aqueous buffers ($n_{\text{sample}} = 1.33$), spherical refraction at the coverslip interface induces apparent axial elongation. True physical depth corresponds to:
$$z_{\text{real}} \approx z_{\text{nominal}} \cdot \left(\frac{n_{\text{sample}}}{n_{\text{oil}}}\right) \approx z_{\text{nominal}} \cdot 0.88$$
Adjust the axial voxel calibration parameter $\Delta z$ to compensate for this optical distortion when reporting absolute volumetric measurements.
Chapter 05

Multi-Channel Management & Spectral Display Adjustment

In the 🎨 Channels LUT tab, researchers configure photometric response transfer functions for each fluorophore:

  • Initial Display Window: Adopts settings stored in file metadata (in Zeiss CZI, adopts native Zen LUTs, display bounds, and gamma; in RGB, spans full dynamic range) or defaults to automatic robust percentiles (0.1%–99.9%). Auto and Full buttons adjust windows on demand; in MIP mode, Auto calculates directly over the maximum intensity projection, preventing dense specimens from rendering over-saturated white.
  • Color Tables & Palettes: Channel Color or scientific pseudocolor scales: Grayscale, Fire, Viridis, Magma, Inferno, or Turbo. For single-channel acquisitions, pseudocolor scales reveal subtle intensity gradients indiscernible in monochrome.
  • Redundant LUT Resolution: If metadata assigns identical colors to distinct channels, the panel triggers an advisory and provides Distinct Colors to separate them (selecting maximally distant perceptual hues).
  • Dynamic Range (Min/Max Clipping): Suppresses non-specific background autofluorescence (black point) while preserving contrast across bright fluorescent structures (white point).
  • Gamma Transfer ($\gamma$): Non-linear photometric transformation $I_{\text{out}} = I_{\text{in}}^\gamma$. Values $\gamma < 1.0$ enhance faint dendritic arborisations without saturating cell somas.
  • Real-Time Mini-Histograms: Instant visual verification of intensity distributions to detect detector clipping or photomultiplier tube saturation.
Chapter 06

Surfaces: Extracting 3D Objects from Fluorescent Signals

Surfaces is the central volumetric morphometry module. It converts raw channel voxel intensities into quantified objects: enumerating elements, measuring physical metrics, and cataloging items for individual curation. This provides the primary pipeline when handling dozens, hundreds, or thousands of cells without manual tracing.

Signal vs Object Distinction
A channel represents continuous optical signal: the radiometric counts registered by a microscope detector. A surface is a discrete topological object derived from that signal via mathematical thresholding. By construction, it encapsulates voxels exceeding that threshold: if an object is not grounded on physical signal, it does not constitute a valid surface.
Autonomous Execution on Image Import
Parameters (Gaussian smoothing σ, threshold mode, characteristic diameter, persistence watershed separation, and size boundaries) are computed dynamically from each individual image, rendering segmentations immediately upon loading; the wizard displays values alongside the badge «Parameters measured from this image». For methodology, validation (F1 = 0.899 on BBBC039), and bounds, see the Automatic Segmentation chapter. Adjusting any slider enforces manual control; click «✨ Auto-adjust to this image» to recalibrate.

6.1 The Five Pipeline Steps

The wizard is located under Wizards › 🧊 Surfaces:

  1. Source Channel: The fluorescent signal from which object boundaries emerge.
  2. Gaussian Smoothing: Suppresses Poisson noise grain prior to isosurface extraction.
  3. Intensity Threshold: Delineates authentic fluorescent signal from background noise floor.
  4. Separation of Touching Objects: Watershed topological partitioning based on characteristic diameter.
  5. Size Gating (Volume / Area Filter): Excludes sub-resolution debris and multi-cellular aggregates.

6.2 Protocol Example: Counting Nuclei

Protocol — From Raw Image to Verified Counts
  1. Load at Native Resolution: Spatial downsampling artificially shrinks objects: a 10-pixel nucleus downsampled by 4× measures under 2 pixels, below which no algorithm can resolve touching boundaries. 3D volume rendering handles VRAM budgets independently; loading native data does not impair interactive framerates.
  2. Select Target Channel: Choose the nuclear fluorophore channel (e.g., DAPI / Hoechst). Only raw acquired channels are offered.
  3. Verify Signal Coverage: The wizard proposes an automatic threshold derived from channel CDF and reports its physical footprint: «at threshold 69, encloses 33.79% of Blue (B)». A coverage of 0% generates empty meshes; exceeding 60% misinterprets half the FOV as signal.
  4. Apply Smoothing: Adjust σ by 1–2 voxels only if high-frequency noise causes surface fragmentation. Smoothing evaluates on a working buffer: it dictates boundary topology while intensity measurements are strictly sampled from raw untouched voxels.
  5. Specify Expected Diameter: Enter characteristic cell diameter or click «Estimate from signal». This parameter guides the watershed algorithm in separating touching nuclei.
  6. Set Size Range & Execute: Specify minimum and maximum size gates, then click ⚡ Create Surfaces.
  7. Review Morphometry Summary: Review created objects, size-excluded candidates, and median volume. If counts diverge from visual inspection, adjust the diameter parameter.
The Most Common Pitfall
Specifying an excessively small diameter forces oversegmentation, fragmenting individual nuclei into dozens of artificial sub-volumes. On a production dataset with identical thresholds, varying diameter yielded: diameter 10 → 938 objects; diameter 40 → 58; diameter 80 → 12 (the ground-truth cell count). If object counts vastly exceed visual expectation, verify diameter sizing.

6.3 Measured Biophysical Values vs Geometric Models

Surface area and volume are direct physical measurements: computed from the raw count of segmented voxels multiplied by calibrated physical voxel dimensions, free from geometric shape assumptions. The same applies to mean, integrated, and peak intensities. The equivalent spherical diameter is a theoretical model — assuming ideal spherical or circular geometry — and is explicitly tagged as such; bounding spheres in the 3D viewport represent equivalent models, not true irregular biological boundaries.

If calibration is incorrect, numerical counts remain valid while absolute $\mu\text{m}^3$ volumes scale erroneously. Without physical calibration, work strictly in voxels.

6.4 Polygonal Mesh Construction

Topological isosurfaces are generated via Marching Cubes (Lorensen & Cline, 1987) applied directly to the segmented object binary mask rather than raw scalar intensities. This guarantees that visual meshes correspond strictly to segmented voxel boundaries. Meshes serve visual rendering; quantitative values derive from discrete voxel integration.

6.5 3D Mesh Export for 3D Printing (STL) and CAD / Blender (OBJ)

Generating surfaces activates two high-fidelity 3D mesh export options:

  • Export STL (3D Printing): 32-bit Little-Endian binary STL with 80-byte header and facet normals. Guaranteed 100% watertight manifold topology ready for immediate slicing in PrusaSlicer, Bambu Studio, or Cura. Slicers interpret $1\,\mu\text{m} = 1\,\text{mm}$, generating a physical macroscopic model at 1,000:1 magnification for tactile teaching and bio-fabrication.
  • Export OBJ (CAD / 3D Modeling): Standard Wavefront OBJ geometry with real-world metric coordinates ($\mu\text{m}$), smooth vertex normals for continuous shading, and clean triangular topology. Ready for Blender Cycles/Eevee photorealistic rendering, anatomical animations, and scientific figures.

6.6 Real-Time Coverage Slider ($O(1)$ via CDF)

Percentage thresholding operates via logarithmic binary search over a pre-computed 16-bit Cumulative Distribution Function (CDF). In just 16 operations ($< 0.02$ ms), the interface updates thresholds dynamically without re-scanning raw volume data or stalling GPU raycasting.

Chapter 07

Sub-Voxel Spot and Vesicular Particle Detection

Quantifies diffraction-limited fluorescent puncta (synaptic vesicles, endosomes, virions, stress granules, single-molecule mRNA) via scale-space blob detection:

  1. Band-Pass Spatial Filtering: Difference of Gaussians (DoG, $k = 1.6$), with filter scale matched to expected spot radius via $\sigma = r / \sqrt{3}$ independently per axis: lateral radius $r_{xy}$ and axial radius $r_z = \text{axial elongation} \times r_{xy}$ (default 2×; confocal PSFs are 2–3× longer axially). Implemented as separable 1D convolutions with $O(nk)$ complexity.
  2. 3D Local Maxima: Evaluates 26-voxel volumetric neighborhoods with deterministic plateau tie-breaking.
  3. Sub-Voxel Coordinate Localization: 3D parabolic interpolation over the DoG response (using 3-plane Gaussian interpolation along Z when axial sampling is coarse). Localization accuracy on synthetic phantoms: 0.002 $\mu\text{m}$ (≈ 1.3% of a voxel).
  4. Local Background Subtraction: Computes the median of an ellipsoidal shell situated between 2 and 3 radii from the centroid (annulus in 2D), strictly avoiding the spot's own diffraction tail.

Per-Axis Model Validation: Across 12 ground-truth benchmark scenes (PSFs elongated 2–4× in Z, steps 0.1 to 1.0 µm), mean F1 improved from 0.978 to 0.991 (worst-case from 0.892 to 0.935), with background subtraction error dropping from 34 to 2.5 gray levels, invariant to fine axial steps.

Why Local Background Correction Matters. For an identical fluorescent spot placed against backgrounds of 10 vs 90 counts, background-corrected net intensity remains identical. Without local background subtraction, reported spot intensities track background fluctuations, measuring illumination gradients rather than probe stoichiometry.
Measured vs Modeled Metrics. Spot centroid position and peak/net intensity are fitted directly from pixel data. Spot volume and surface area are derived from the fitted Gaussian radius under spherical assumptions: they represent a geometric model, not a physical measurement, and are tagged as such in UI tables, CSV exports, and provenance manifests. Diffraction-limited objects do not possess optically measurable volumes in conventional microscopy.
Chapter 08

Filament Tracing, Neurite Outgrowth & Sholl Morphometry

The Filaments module reconstructs tubular biological branching structures — dendritic arbors, axons, microvascular capillaries — directly from raw image voxel data via geodesic medial centerline tracing (APP/APP2 algorithmic family, Peng et al.).

  1. Thresholding & Distance Transforms: Distance transforms incorporate physical anisotropic voxel weights, yielding local radii in $\mu\text{m}$ rather than voxel units.
  2. Automated Soma Root Identification: Resolves the global maximum of the distance map — corresponding to the thickest morphological node (cell soma in neurons).
  3. Centered Geodesic Shortest Paths: Propagates through the segmentation mask while penalizing deviation from the medial ridge. Without medial penalization, shortest paths take diagonal shortcuts cutting corners along inner lumen walls.
  4. Iterative Furthest-Point Tracing: Traced paths claim a tubular volume of influence; subsequent branches initialize from the furthest unclaimed node.

Path length integrates physical metric Euclidean distances through voxels: mathematically exact by construction, including oblique diagonals.

Quantitative Arborisation Metrics:
  • Total Traced Length ($\mu\text{m}$), branch segment count, and bifurcation nodes.
  • Longest Continuous Path ($\mu\text{m}$): primary arborisation axis.
  • Mean Caliber / Radius ($\mu\text{m}$), measured directly from the distance transform.
  • Fraction of total segmented structure topologically connected to the root soma.
Fragmentation Advisory. If optical thresholding fragments the arbor into isolated islands, tracing maps only the component containing the root soma. Reporting a partial segment length as total cell arborisation would introduce severe scientific bias; MTZ² reports the percentage of connected structure and triggers warnings if connectivity drops below 95%.
Sholl Morphometric Analysis (Sholl, 1953):

Quantifies branching complexity by counting discrete branch intersections across concentric spherical shells of expanding radii centered on the soma centroid. Intersections are evaluated directly on the thresholded binary mask rather than the skeletal graph, ensuring mathematical independence from skeletonization heuristics. Reports peak intersection count $N_{\max}$, critical radius $r_c$, and enclosing radius $r_e$, exporting the complete raw profile for publication figures in R or Python.

Chapter 09

Quantitative Fluorescence Colocalisation (Coloc)

Colocalisation analysis faces rigorous scrutiny during scientific peer review. MTZ² computes the complete suite of established orthogonal coefficients required by international reporting standards.

Pearson Correlation Coefficient:
$$r = \frac{\sum_i (A_i - \bar{A})(B_i - \bar{B})}{\sqrt{\sum_i (A_i - \bar{A})^2 \sum_i (B_i - \bar{B})^2}}$$

Evaluated across the entire ROI without intensity threshold masking, adhering to the mathematical definition of the statistic. Masking policies are declared explicitly in export summaries and Methods text.

Restricting Pearson calculations to non-zero pixels artificially inflates $r$. While permissible if explicitly documented, silent masking produces systematically elevated coefficients incomparable with published literature.
Automated Costes Statistical Thresholding (2004):

Fits an orthogonal regression line $B = aA + b$ — orthogonal rather than ordinary least squares because both optical channels contain detector noise — descending the threshold along the regression slope until the population beneath exhibits zero correlation ($r \le 0$). The residual population above threshold constitutes the true correlated signal by construction, eliminating subjective visual thresholding.

Manders Split Overlap Coefficients (1993):
$$M_1 = \frac{\sum_i A_{i,\text{coloc}}}{\sum_i A_i} \qquad M_2 = \frac{\sum_i B_{i,\text{coloc}}}{\sum_i B_i}$$

Independent of absolute fluorophore intensity ratios: ideal when labeling efficiencies or quantum yields differ significantly between probes.

Complementary Non-Parametric Statistics:
  • Li's Intensity Correlation Quotient (ICQ, 2004): Bounded in $[-0.5, +0.5]$; $+0.5$ denotes dependent synchronous staining, $0$ indicates random distribution, and negative values reflect mutual exclusion.
  • Spearman's Rank Correlation ($\rho$): Non-parametric rank correlation resilient against non-linear detector response. In monotonic non-linear relations, $\rho = 1.000$ vs $r = 0.916$: reporting both differentiates true biological association from detector saturation curves.
Linear-Time $O(N)$ Spearman Acceleration:

Traditional rank calculation via $O(N \log N)$ sorting (quicksort) previously froze the browser for over 35 seconds on $10^7$ voxel confocal volumes. MTZ² implements an $O(N)$ counting sort and prefix-sum cumulative histogram over 16-bit dynamic ranges. Rank ties are resolved analytically, reducing execution time from 35,000 ms to under 20 ms (>1,700× speedup) with bit-exact metrological accuracy.

Statistical Significance via Block Randomization:

High correlation does not establish specific molecular association: two independent markers filling the same compartment correlate by spatial confinement. The Costes randomization test permutes channel $B$ in spatial blocks matching PSF dimensions — disrupting spatial alignment while preserving local texture — evaluating empirical $p$-values. The pseudo-random generator is seed-deterministic: identical inputs consistently produce identical $p$-values.

Derived Channels. A mathematical channel computed from others (such as the average of RGB channels) correlates by algebraic construction. The suite flags derived channels and excludes them from colocalisation selectors.
Fail-Safe Metrics. When measurements cannot be validated — unequal array dimensions, zero variance, or identical channel selection — the UI reports the diagnostic cause rather than producing zero or default placeholders.
Chapter 10

4D Dynamics, Particle Tracking & Quantitative Kinematics

A temporal image series represents an experiment examining biological motility. Merely playing back frames measures nothing: quantitative bioimaging requires linking each individual object with its corresponding self over time.

4D Playback & Temporal Timeline
Clicking ▶ loads the dedicated 3D volumetric frame for each timepoint, dynamically regenerating surfaces if target channels vary. Elapsed time computes as timepoint index × time interval, adopting the acquisition delta declared in the Tracking Wizard (matching velocity and MSD equations). Example: 10 frames at 30 s intervals → frame 5 represents $t = 120$ s.

Navigation and Workflow

  1. Load a time-series dataset featuring multiple timepoints: Mitosis, Microvascular Network, or Phagocytosis from the top sample dropdown.
  2. Left panel → 🌳 Surpass Tree tab.
  3. Click ◯ 4D Trajectories. The panel automatically transitions to the ⚙️ Wizards tab, displaying the 🕑 4D Particle Tracking wizard.
  4. Select the source channel containing motile objects and declare the inter-frame time interval ($\Delta t$) in seconds: this parameter converts coordinate displacements into physical velocities.
  5. Click 🕑 Track Objects Over Time.

Kinematic summaries render beneath the trigger: reconstructed trajectories, mean velocity, track straightness, apparent diffusion coefficients, and an interactive Mean Squared Displacement (MSD) curve. Trajectories render as 3D vector polylines in the viewport.

Global Optimal Linking via the Hungarian Algorithm

Inter-frame spatial linking is resolved through global combinatorial assignment (Hungarian algorithm) rather than greedy nearest-neighbor heuristics.

Why Greedy Nearest-Neighbor Fails. When two motile particles cross in close proximity, greedy local pairing swaps their identities — an identity swap turns two straight crossing paths into artificial reflection trajectories, halving path straightness and skewing velocity metrics. Global bipartite assignment minimizes total displacement cost globally across the frame pair. In benchmark validation of two counter-propagating crossing objects, measured path straightness is 1.000.
Particle Births, Deaths & Temporal Gaps

The cost matrix incorporates cost boundary augmentations (Jaqaman et al., 2008) so that non-linking competes as a valid finite-cost option: when forcing an improbable jump exceeds a realistic penalty, the algorithm registers a track termination or birth. The gap-closing tolerance parameter prevents transient fluorescence blinking from fragmenting a continuous trajectory into false truncated tracks. Linking evaluates against active track tails across preceding frames.

Search Gating Radius

With a user-declared maximum biological velocity ($v_{\max}$), the gating search radius is $R_{\max} = v_{\max} \cdot \Delta t$. In automated mode, gating defaults to 3× the median nearest-neighbor distance — using the median rather than the mean to prevent sparse rapid outliers from expanding search gates globally.

Derived Kinematic Metrics:
  • Instantaneous and track-averaged velocity ($\mu\text{m}/s$) with standard deviation.
  • Total trajectory path length vs net Euclidean displacement.
  • Directional Straightness $=$ net displacement / total path length, bounded in $(0, 1]$: values approaching 1 denote directed active transport; values near 0 reflect confined Brownian wandering.
  • Mean Squared Displacement (MSD): Evaluated across temporal lags ($\tau$), deriving apparent diffusion coefficients ($D$) via $\langle r^2\rangle = 6D\tau$.
MSD Uncovers Mechanics Obscured by Mean Speed. Two distinct cellular populations may exhibit identical mean scalar velocities while possessing fundamentally divergent biophysical transport regimes: linear MSD indicates unconfined Brownian diffusion; upward curvature denotes active motor transport; asymptotic plateaus reveal spatial confinement within cytoskeletal corrals. On a synthetic random-walk benchmark, the measured diffusion coefficient was 0.168 $\mu\text{m}^2/s$ against the 0.167 theoretical ground truth.
Truncated Edge Trajectories. A trajectory initialized prior to acquisition frame 0, or persisting past the final timepoint, has an observed duration that represents a lower bound rather than a true biological lifespan. Averaging truncated tracks with complete events underestimates kinetic durations. MTZ² tracks them separately and tags them in CSV exports via a dedicated Complete boolean column.

Each trajectory renders as a 3D polyline pseudocolored by mean track velocity across perceptually uniform colormaps (avoiding red-green palettes). CSV exports provide population summaries, single-track kinematic rows, raw MSD coordinates, and comprehensive spacetime coordinates ($x, y, z, t$).

Velocity Reporting Locations:
  • Population Summary: Displayed beneath the wizard button (mean ± SD, straightness, duration, diffusion coefficient, and search radius).
  • Per-Track Table: Right panel → 📏 Measurements tab: sorted table reporting velocity, displacement, straightness, and duration per trajectory.
Bipartite Hungarian Graph Decomposition

Rather than computing an unconstrained dense $O(N^3)$ global cost matrix (8,500 ms/frame on dense fields), the engine exploits physical velocity limits $v_{\max}$ to establish a bounded gating window $R_{\max} = v_{\max} \cdot \Delta t$. A sparse bipartite graph is constructed and partitioned into independent connected components. Each subcomponent of size $k \ll N$ is solved via Kuhn-Munkres independently, reducing compute time to 2 ms per frame pair (>4,000× acceleration).

Static Buffer Pools in Euclidean Distance Transforms (EDT)

During 3D persistence watershed operations, transient TypedArray memory allocations were eliminated by recycling pre-allocated static typed buffer pools, preventing JavaScript garbage collection latency spikes and cutting watershed processing time by 70%.

Chapter 11

Orthogonal Slicers and 3D Euclidean Metrology

The Ortho Slicer mode provides simultaneous, synchronized navigation across the three canonical Cartesian planes (XY axial, XZ coronal, YZ sagittal) of the calibrated volume.

Interactive 3D Ruler: Point-to-Point Measurement
$$d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}$$
  1. Activate the ruler via 📏 on the floating toolbar. The cursor transitions to a crosshair and camera rotation is temporarily locked, preventing accidental viewpoint tilting while picking measurement anchors.
  2. Click point 1, click point 2. Cyan spherical markers anchor each endpoint, connected by a dashed 3D line.
  3. Upon registering the second endpoint, the physical distance logs and the anchor counter resets: subsequent clicks immediately initiate a new measurement pair rather than extending an unclosed polyline.
  4. Logs accumulate in the Measurements tab, recording 3D spatial coordinates ($x, y, z$) for both endpoints.
  5. Clicking 📏 again toggles ruler mode off and removes on-screen viewport pins while retaining tabular records.

Ray-Picking Intersection Hierarchy

  1. Solid Reconstructed Geometry First: Ray-casting intersects first against active isosurfaces, spot meshes, and traced filaments. Intersections are exact and invariant to display transfer functions.
  2. Volumetric Ray-Marching Fallback: If no solid polygonal geometry is present, the ray marches through raw voxel data, halting at the first voxel whose scalar intensity surpasses the display threshold — snapping directly to the first visible biological boundary.
  3. If no signal is intersected along the sightline, no anchor is placed, reporting an explicit diagnostic warning rather than hallucinating arbitrary coordinates.
Why Ray-Picking Hierarchy Matters. Volumetric textures are rendered via stacks of semi-transparent planes. Naive ray-pickers intersect the outer front bounding box of the volume stack: both endpoints collapse onto the same planar bounding slab, measuring outer container dimensions rather than intracellular structures (introducing tens of micrometers of silent error). MTZ² excludes volume slabs, bounding grids, and UI markers from the ray-picker.
Volumetric Ray-Picking Threshold Dependency. Lowering channel black points halts ray-marching at faint peripheral halos; elevating thresholds marches the ray deeper into dense cores — an 8 $\mu\text{m}$ shift in reference phantoms. Every measurement logs its target geometry type (isosurface, spot, filament, or volume) in tables and Methods summaries. For peer-reviewed publication, prefer measurements taken on reconstructed isosurfaces.
Physical Dynamic Scale Bars
  • 3D Viewport: Physical micrometers per on-screen pixel vary dynamically with camera distance ($h = 2d\tan(\theta/2)$). Consequently, the 3D scale bar rescales in real time during zoom adjustments.
  • Orthogonal Slices: Scale calculates from physical calibration metrics.

Scale bar lengths round to standard 1, 2, or 5 multiples of ten ($10^n$); nanometers below 1 µm, millimeters above 1000 µm.

A scale bar that remains static during zoom is invalid. Scale bars communicate spatial ground truth in publication figures. MTZ² automated regression suites enforce dynamic rescaling upon every zoom delta.

Measurements export to CSV with 3D endpoint coordinates, surface target classifications, and ISO 8601 timestamps, preserved across sessions.

11.5 Instant Canonical Alignments in Fullscreen Mode

Free 3D rotation can obscure axial penetration gradients and symmetry. The maximized viewport provides one-click canonical orthographic alignment triggers:

  • 🌐 Isometric 3D: Standard $45^\circ$ axonometric perspective, preserving spatial depth cues.
  • ⬆️ Top View (XY): Orthographic axial projection perpendicular to the optical axis, matching conventional confocal planar views.
  • ➡️ Frontal Plane (XZ): Coronal transversal cross-section. Facilitates direct visual inspection of axial photonic decay $I(z)$ and optical scattering.
  • ↗️ Lateral Plane (YZ): Sagittal view. Indispensable for evaluating focal shift elongation artifacts caused by coverslip refractive index mismatch.
11.6 Modular Workspace: Floating Panels (PanelManager)

For multi-monitor workstations and ultra-wide displays, side panels and the 4D timeline detach into floating viewports:

  • Undock (❐): Transforms panels into glassmorphic floating windows with drag handles (⋮⋮) and resize corner grips (⤡).
  • Keyboard Shortcuts: Alt+1 (Left Panel), Alt+2 (Right Panel), Alt+3 (4D Timeline), Alt+4 (3D Tools), Alt+5 (Header Menus), Alt+0 (Reset All to Factory Defaults).
  • Retractable Edge Tabs: Closing a floating window creates a retractable edge tab to restore it with a single click. Window configurations persist in localStorage.
11.7 Real-Time Sample and Series Traceability (SAMPLE:)

The SAMPLE: header block displays verified active dataset provenance:

  • Multi-Slice Z-Stacks: Parses series prefixes and displays 📁 cell01 (40 slices), preventing confusing single 2D slices with physical 3D volumes.
  • 2D vs 3D Verification: Single 2D slices are tagged 📷 name (2D extruded), cautioning that axial depth is synthetic and not citeable for biological volume.
  • Status LED & Tooltip: Emerald green indicator (● Green) confirms valid physical data, with tooltip detailing matrix dimensions, channels, and calibration origins.
Chapter 12

Provenance, Auto-Generated Methods & FAIR Principles

Verifying Production Build Integrity

The top header displays the active build identifier, e.g., Build 018778, incremented with each deployment.

Do Not Rely on Static Numbers — Click to Verify
Clicking the build badge triggers a client-side integrity audit, recalculating and comparing cryptographic hashes of all loaded application modules. Green indicates complete asset consistency. Red alerts identify specific stale or missing assets.

The foremost driver of irreproducibility in quantitative microscopy is not algorithmic bugs: it is that months post-acquisition, exact threshold parameters, calibration scales, and raw file versions are lost. The Reproducibility module records complete audit trails during live analysis.

Provenance Audit Manifest:
  • Dataset Identity: Pixel dimensions, bit-depth, and SHA-256 cryptographic hash of raw voxel arrays. Two analyses citing identical hashes executed on identical data bytes.
  • Physical Calibration Origin: Explicitly tags whether voxel dimensions derive from OME metadata, manual entry, or assumed defaults, alongside downsampling decimation ratios.
  • Algorithm Parameter Logs: Records all wizard parameters alongside ISO 8601 timestamps.
Auto-Generated Materials & Methods:

Generates rigorous publication-ready scientific text with formal literature citations derived from executed operations. Every numerical parameter in the text emerges directly from analysis logs; zero metrics are hardcoded templates. Integrates standard citations (Lorensen & Cline 1987; Marr & Hildreth 1980; Manders 1993; Costes 2004; Li 2004; Bolte & Cordelières 2006; Sholl 1953).

Always Review Methods Prior to Submission. The text details software algorithms and parameters; it does not describe specimen biology, wet-lab protocols, or biological experimental design.
Shareable & Reproducible Sessions:

Saves thresholds, channels, false-color LUTs, segmented objects, measurements, and camera coordinates into a portable .mtz2.json file or URL fragment.

Raw Image Pixels are Never Transmitted. Multi-gigabyte stacks cannot leave institutional servers due to data governance and ethics. Session files transmit analytical parameters, calibration metadata, and SHA-256 verification hashes. The URL fragment encodes session state locally without server transmission.
Batch Processing Protocols:

Applies identical segmentation parameters across cohorts of image files, outputting structured tabular summaries with common sample prefix grouping. Output CSVs embed configuration headers reporting exact parameters used.

Pseudoreplication Warning. Each row represents a microscopic field or slice, not an independent biological animal or clinical patient. Multiple FOVs from the same tissue specimen must be aggregated before hypothesis testing.
Descriptive Statistics & Publication Snapshots:

Reports sample size ($n$), mean $\pm$ standard deviation, 95% confidence intervals, median, and dynamic range.

Pressing Ctrl+S triggers offscreen rendering at specified high-DPI resolutions (3840 px long edge), computing effective print DPI for standard 85 mm single-column figures.

Chapter 13

Metrological Measurement Instrument Validation

Commercial microscopy software packages rarely declare intrinsic algorithmic measurement errors, leaving researchers uncertain whether reported volumes carry 1% or 50% systematic error. MTZ² provides real-time client-side verification directly in your browser session.

Reproducibility → Validate Instrument synthesizes mathematical geometric phantoms — perfect spheres, cubes, border-clipped objects, sub-diffraction Gaussian puncta — processing them through the identical measurement pipelines applied to experimental data. Observed deviation against analytical equations represents true algorithmic measurement error.

Synthetic PhantomAnalytical Ground TruthMeasured ValueEmpirical Error
Sphere Volume ($R = 8\ \mu\text{m}$)2144.66 $\mu\text{m}^3$2141.47 $\mu\text{m}^3$−0.1%
Surface Area804.25 $\mu\text{m}^2$803.62 $\mu\text{m}^2$−0.1%
Sphericity Factor1.0001.000−0.0%
Cube Volume (6 $\mu\text{m}$)216.00 $\mu\text{m}^3$215.35 $\mu\text{m}^3$−0.3%
Sub-Voxel Spot Localization< 1 voxel0.002 $\mu\text{m}$1.3% of a voxel
Certificate Boundaries. The audit certificate characterizes the mathematical precision of the software engine on synthetic geometry. It does not substitute physical microscope optical alignment, PSF calibration, specimen staining quality, or user-supplied voxel dimensions.

This validation suite executes automatically during continuous integration builds (6 test suites, 131 assertions), halting deployment if numerical tolerances diverge.

Chapter 14

Educational Mode: Practical Exercises with Known Ground Truth

Zero-install web architecture enables simultaneous classroom deployment across hundreds of university students. Educational mode provides synthetic laboratory specimens featuring exact analytical ground truth, allowing automated quantitative assessment of student measurements.

Laboratory ExerciseTarget MetricAcceptance ToleranceBiophysical Learning Concept
Organelle VolumeVolume ($\mu\text{m}^3$)±10%Segmentation stability vs threshold selection
Synaptic Vesicle CountSpot enumeration±15%Why global thresholding fails under non-uniform background
ColocalisationPearson correlation $r$±20%High $r$ without $p$-value does not demonstrate molecular interaction

Each exercise generates synthetic specimens dynamically from mathematical equations with exact voxel calibrations. Each student session generates using a unique pseudo-random seed: every student receives distinct numerical ground-truth values preventing answer sharing, while instructors can regenerate the identical seed for grading.

Conceptual Mastery Over Arithmetic. The educational objective is enabling students to directly observe how subjective threshold choices alter quantitative biological conclusions, providing methodological hints rather than direct answers when measurements deviate beyond tolerance.
Chapter 15

Interactive Pixel Classifier: Segmentation by Interactive Brush Training

Scalar intensity thresholding separates features only when intensity distributions diverge. When biological structures share identical gray levels with surrounding background and are distinguishable solely by texture, spatial scale, or local morphology, thresholding fails regardless of fine-tuning. The Interactive Classifier addresses this by training directly on user annotations.

Navigation and Workflow

  1. Left panel → 🌳 Surpass Tree → ◉ Classifier.
  2. Select the target channel to segment.
  3. Check Enable Brush. The viewport switches to synchronized orthogonal slice planes where brush annotations are drawn.
  4. Under class Object, paint over obvious cellular structure; under Background, paint over empty extracellular space. To resolve multi-class targets, add classes via + Class.
  5. Click Train & Classify.
  6. Inspect classification predictions and paint corrective strokes exclusively where errors occur. Retrain.
Iterative Correction, Not Exhaustive Annotation. Because training targets edge errors iteratively, several hundred annotated voxels suffice — compared to tens of thousands required by deep neural networks.

Multi-Class Color Segmentation

Workflows are not restricted to binary foreground/background: define up to 8 discrete classes with individual color tags (e.g., Background, Cytoplasm, Nucleus, Plasma Membrane). The Random Forest partitions all classes simultaneously.

  • Add Class: Click + Class.
  • Rename: Double-click class label.
  • Change Color: Click color swatch.
  • Delete: Click × on hover; brush strokes clear and indices renumber.
  • Paint: Click class row to activate brush.

Class 0 is permanently reserved for Background: the classifier requires explicit negative training examples of non-signal regions.

Okabe-Ito Colorblind-Safe Palette. Class colors utilize the standardized Okabe-Ito palette, ensuring distinct perceptual separation under common deuteranopia and protanopia color vision deficiencies.

The Class to Quantify selector specifies which classified class converts into an isosurface for morphometric measurement. Re-measuring classes does not require retraining. Across a 3-layer concentric phantom, class concordance was 1.00, 1.00, and 0.98.

Multiscale Feature Descriptor Vectors

Raw voxel intensity alone cannot resolve complex phenotypes. Each voxel is parameterized across 13 multiscale spatial descriptors evaluated at three filter scales ($\sigma \in \{1, 2, 4\}$ pixels in XY, mapped to physical micrometers along Z): raw intensity, Gaussian smoothing, gradient magnitude, Difference of Gaussians (DoG), and local texture variance. The model identifies which descriptor best discriminates target classes.

Why Random Forests?

Interactive correction requires instantaneous retraining cycles. Random Forests (Breiman, 2001) train in milliseconds on modest sample sizes, require zero hyperparameter tuning, and yield calibrated posterior probabilities. Deep neural networks require minutes and GPU clusters: impractical for interactive browser-based sessions. Empirical benchmark: 12 ms training latency on 302 annotated voxels.

Ignore Training Set Accuracy — Evaluate Out-of-Bag (OOB) Generalization. The suite displays Out-of-Bag (OOB) error estimates, where each sample is evaluated exclusively against decision trees withheld from its training subset. Under randomized label controls, training accuracy hits 100% while OOB accuracy collapses to 51.5% (random chance).
When to Use Classifiers vs Thresholding
Imaging ScenarioOptimal Global ThresholdRandom Forest Classifier
Non-overlapping intensitiesIoU 1.000IoU 0.962
Identical intensity, distinct spatial textureIoU 0.077IoU 0.810
If intensity thresholding resolves your specimen, use thresholding. Without intensity overlap, mathematical thresholding is exact. The classifier's value emerges where intensity alone fails, boosting IoU from 0.08 to 0.81.
Classification Dictates What is Measured, Never How. Clicking «Measure this class as isosurface» transfers the probability mask to the validated Marching Cubes engine. Measurement pipelines remain strictly uniform and audited.

Random Forests initialize with fixed pseudo-random seeds: identical training strokes yield deterministic segmentations. Training strokes persist in session files, and Methods logs record class counts, descriptors, sample sizes, and OOB scores.

Chapter 16

Native Vendor Formats (Zeiss CZI & Leica LIF), 3D Mesh Export (STL / OBJ) & Acceleration Matrix

Direct binary streaming of Zeiss and Leica containers without prior file conversion, physical 3D mesh export for additive manufacturing, and high-performance algorithmic acceleration architecture.

Direct Binary Parsing of Zeiss CZI and Leica LIF

Exporting to multi-file TIFFs from vendor workstations consumes disk storage and risks losing physical metadata ($dx, dy, dz$). MTZ² parses both proprietary binary container architectures directly slice-by-slice.

ParameterZeiss CZI (ZISRAW)Leica LIF (LMSDataContainer)
StructureHeader, subblock directory, XML metadata, and chunked pixel subblocksProject XML in UTF-16LE and continuous memory segments per series
Calibration<Distance Id="X|Y|Z"> in meters, converted to $\mu\text{m}$Physical distance between first and last voxel divided by $N-1$
Bit-Depth & CodecsGray8/16/32 and BGR 8/16; uncompressed and Zstd (JPEG XR unsupported)8, 12, 16, and 32-bit uncompressed
Channels & TimeChannel labels, emission peaks, Δt interval, and Zen LUTs (color, bounds, gamma)Per-channel LUTs (color scales like Fire mapped to colormaps) and Δt intervals
Multi-Series ContainersScenes (user selection), coordinate mosaics, and Lightsheet multi-angle viewsAll acquisition series (user selection); first mosaic tile with advisory
Direct CZI / LIF Import Protocol
  1. Open file via File › Load Image / Stack or drag directly onto the viewport.
  2. In metadata dialog, select target scene or series (for Lightsheet, select camera view and illumination fusion options) and verify physical calibration read directly from header tags.
  3. Dataset displays adopting microscope acquisition LUTs and display bounds (falling back to auto-percentiles if absent). Adjust dynamic range in channel cards.
3D Geometric Mesh Export: Binary STL & Wavefront OBJ

Reconstructed Marching Cubes isosurfaces export with metric precision:

FormatTarget ApplicationsTechnical Specifications
Binary STL (.stl)3D Printing, PrusaSlicer, Bambu Studio, Cura, CADIEEE 754 float32 Little-Endian, 80-byte header, 50-byte facets, 100% watertight manifold. Calibrated at $1\,\mu\text{m} = 1\,\text{mm}$ (1,000:1 physical scale)
Wavefront OBJ (.obj)Blender, Cycles/Eevee, Maya, 3D DCC suitesVertices $x,y,z$ in physical $\mu\text{m}$, area-weighted smooth vertex normals ($vn$), polygonal faces ($f$) for smooth shading
Bioinformatics Computational Acceleration Matrix
Module / FunctionConventional ApproachMTZ² Modern EngineMeasured Speedup
Spearman ColocalisationQuicksort $O(N \log N)$ (35 s on $10^7$ vx)Linear cumulative histogram $O(N)$> 1,700× (< 20 ms)
4D Tracking LinkerGlobal Hungarian $O(N^3)$ (8,500 ms/frame)Sparse bipartite decomposition $R_{\max}$> 4,000× (2 ms/frame)
GPU RaymarchingExhaustive volumetric samplingEmpty-space skipping ($\max < 0.002 \to 2\Delta t$)3× to 5× FPS (60 FPS)
3D Spots Rendering3,500 individual scene graph meshesTHREE.InstancedMesh in 1 draw call1 draw call (0.3 ms CPU)
Watershed Transform540,000 transient TypedArrays (GC stalls)Pre-allocated static buffer poolsZero heap churn (70% faster)
Coverage SliderIterative volume re-thresholding $O(N)$Binary search $O(1)$ over 16-bit CDFInstantaneous (< 0.02 ms)
Volumetric VRAMUnstructured dense arraysSparse $64^3$ chunked pyramids60% VRAM reduction, $O(1)$ ROI
Chapter 17

Reproducible Workflow Recipes (.mtzwf), Batch Processing & Methods Reporting

Every executed analytical module appends a validated step to the active recipe (🔬 Reproducibility › 🔄 Workflows) with parameters, execution timestamps, and quantitative summary metrics. Recipes export in open .mtzwf JSON formats sealed by cryptographic signatures: $H = \text{SHA-256}(\text{JSON}(\text{steps}))$. Signatures verify on import; modified files are rejected.

Guided Recipe Templates
Template PipelineAnalysis StepsRepresentative Output
Dendritic Spine MorphometryFilaments → Spine Wizard → VantageSholl profiles, spine linear density, head calibers via FWHM & inscribed sphere
Subcellular CytometryCells / Nuclei → Confined Spots → Per-Cell CargoProbe foci count per nucleus and frequency distributions
Tumor MicroenvironmentTumor Isosurface → Binary Mask → Intra/Peritumoral CellsIntratumoral infiltration ratio vs peritumoral stroma
4D Particle KinematicsPer-Frame Spot Detection → Hungarian Linker → KineticsMean velocity, track straightness, and apparent diffusion (MSD)
Automated Batch Processing

In 📦 Batch, clicking 📂 Choose Files… executes active pipeline parameters across entire folder cohorts at native resolution (applying surfaces, spot detectors, colocalisation, and filament tracing). Results compile into a unified CSV with one row per specimen alongside data quality flags (border clipping, uncalibrated voxel assumptions, fragmented arborisation). Parameters are kept strictly identical across batch runs to preserve comparability across experimental cohorts.

Batch Protocol: Synaptic Density Screening
  1. Load negative control specimen and verify optical voxel calibration.
  2. In 🧊 Surfaces, set MAP2 dendritic threshold; in 🔴 Spots, configure Bassoon presynaptic channel (radius 0.20 µm). Inspect 3D detection fidelity.
  3. Export pipeline recipe via 💾 Export Workflow (.mtzwf) for provenance archiving.
  4. In 📦 Batch, select all 24 experimental cohort files and export aggregate CSV summary.
  5. Treat independent wells as experimental units ($N$): compare cohort means via Welch's $t$-test or linear mixed-effects models with 95% confidence intervals.
Chapter 18

3D Region of Interest (ROI) Bounded Detection

Restricts segmentation and detection of Spots, Filaments, or Secondary Cells strictly within the 3D volume enclosed by previously reconstructed biological isosurfaces, filtering out extracellular debris, non-specific background, and stromal artifacts.

Dual-Stage Geometric Gating Algorithm

Combines immediate $O(1)$ spatial bounding box rejection ($\text{AABB}(S)$) with discrete voxel inside-outside evaluations on the discretized volumetric mask $\mathcal{M}_S(x,y,z)$. In addition, computes exact orthogonal Euclidean distance to the bounding membrane: $d_{\perp}(\mathbf{p}, \partial S) = \min_{\mathbf{q} \in \partial S} \|\mathbf{p} - \mathbf{q}\|_2$.

Protocol: Quantifying Intranuclear DNA Damage Foci (γ-H2AX)
  1. In 🧊 3D Surfaces, segment nuclei on Ch1 (DAPI) via local Otsu with volume gating $V \in [180, 850]\,\mu\text{m}^3$.
  2. In 🔴 Spots Wizard, select Ch2 ($\gamma$-H2AX) and assign nuclear surface in «🎯 Constrain to ROI (Surface)».
  3. Configure estimated lateral radius to $0.18\,\mu\text{m}$ (diameter $0.35\,\mu\text{m}$) and axial elongation to 2 ($r_z = 0.35\,\mu\text{m}$). Enable local background subtraction.
  4. Click 🔍 Detect 3D Spots.
  5. Inspect 📊 Statistics tab for per-nucleus foci counts and volumetric packaging density ($\text{foci}/\mu\text{m}^3$).
Chapter 19

Machine Learning: Exemplar-Trained Random Forest Classifiers

Under optical photobleaching, depth-dependent scattering, or autofluorescent pigments (lipofuscin, elastin), single global thresholds fail to resolve signal from noise. MTZ² integrates two Random Forest classifiers (Breiman, 2001) that train dynamically in the browser from user-annotated exemplars, reporting objective Out-of-Bag (OOB) error estimates.

Classifier ModuleAnnotation TargetFeature DescriptorsEnsemble Architecture
ML Spot FilterClicks in 3D viewport on true vs false puncta8 descriptors ($\mathbb{R}^8$): fitted radius, peak/mean intensity, local background, SNR, FWHM, contrast, DoG response20 Decision Trees
Orthogonal Brush ClassifierMulti-class brush strokes on slice planes13 descriptors/voxel: intensity and multiscale Gaussian, gradient, DoG, and variance at $\sigma \in \{1, 2, 4\}$ px40 Decision Trees

Decision tree splits evaluate $m = \mathrm{round}(\sqrt{p})$ randomly sampled features per node, minimizing Gini impurity; class posterior probabilities correspond to tree vote fractions. OOB metrics evaluate training samples exclusively across trees where that sample was withheld. Under randomized labels, OOB accuracy collapses to 51.5% (random chance validation).

Protocol 1: Discriminating True Foci from Lipofuscin (ML Spot Filter)
  1. In 🔴 Spots, detect puncta using a sensitive threshold to avoid missing dim signals.
  2. In 🤖 ML Filter, click ✚ True Positives and select 5–10 authentic foci in the viewport (green pins); click ✖ False Positives and select 5–10 lipofuscin autofluorescent bodies (pink pins).
  3. Click Train: panel reports sample size, OOB accuracy, dominant feature descriptor, and compute time.
  4. Adjust probability threshold slider (e.g., 0.80) to filter candidate spots; annotate residual classification errors and retrain. Methods logs record training sizes, OOB score, and gating thresholds.
Protocol 2: Spheroid Nuclei Under Axial Attenuation (Brush Classifier)
  1. In Classifier Wizard, select DAPI channel with classes «Nucleus» and «Background».
  2. Paint training strokes across superficial and deep Z-planes: models learn only features present in training data.
  3. Click ⚡ Train & Classify, inspect deep planes, and paint corrective strokes on misclassified regions.
  4. Click 🧊 Measure this class as isosurface to export calibrated volumes and cell counts.
Scientific Review Reporting Standards
Report training sample sizes, OOB scores, and classification thresholds (automatically compiled by MTZ² in Methods); validate on independent withheld annotated datasets (reporting Precision, Recall, F1); annotate exemplars blinded to experimental treatment cohorts.
Chapter 20

3D Channel Masking in Batch (Batch Channel Masking)

Generates a new optical channel isolating voxel intensities from another channel strictly inside (or outside) segmented biological objects, preserving identical data types and radiometric units; raw acquisition channels are preserved untouched. Upon generation, the panel reports fractional voxel volume and the fraction of total radiant intensity sequestered inside or outside target compartments (without background subtraction).

Masking Modes
ModeMathematical FormulationBiomedical Application
Inside Only (Zero Outside)$I_{\text{masked}}(x,y,z) = I_c(x,y,z) \cdot \mathcal{M}_S(x,y,z)$Isolates fluorescent signals within an organelle compartment (e.g., Parkin in mitochondria) and quantifies the compartmentalized intensity fraction.
Outside Only (Zero Inside)$I_{\text{masked}}(x,y,z) = I_c(x,y,z) \cdot (1 - \mathcal{M}_S(x,y,z))$Excludes hyper-fluorescent cell somas or nuclei to measure pericellular or stromal signals.
Protocol: Mitochondrial Translocation of Parkin in Mitophagy
  1. In 🧊 Surfaces, segment the Tom20 mitochondrial channel (auto-tune or manual parameters) and click ⚡ Create Surfaces.
  2. Under 🎭 Mask a channel with these objects, select the mCherry-Parkin channel and set mode to Inside Only (Zero Outside); click 🎭 Create Masked Channel.
  3. Record the fractional intensity of Parkin enclosed within mitochondrial volumes reported in the panel; compare against baseline control cells acquired at identical detector gain.
  4. If computing Manders colocalisation, evaluate between the original raw channels of Tom20 and Parkin: colocalising a masked channel against its own mask source is circular by definition and rejected by MTZ².
Chapter 21

Vantage: Bio-Statistics & In Silico Image Cytometry

Vantage visualizes and statistically compares quantitative measurements extracted from the active image: segmented surfaces, spots, traced filaments, manual regions, dendritic spines, and 4D trajectories. If no objects have been segmented yet, it provides instructional guidance on running upstream wizards. Open via 📊 Vantage in the top header and close with ✕ Close Vantage or Esc.

The Four Analytical Views
Tab ViewVisual RepresentationStatistical Tests & Metrics
📈 1D ViewSingle metric per group: Box & Whisker (Tukey), Violin Plot (KDE density), or Histogram normalized as % of cohort (flow cytometry style). Linear or Log10 scaling.Median, IQR, Mean ± SD, 95% CI. Two groups: Mann-Whitney U and Welch's t-test. Three or more: Kruskal-Wallis with post-hoc Holm-corrected pairwise Mann-Whitney tests.
📊 2D ViewBivariate scatter plot with OLS regression line and 95% confidence band, 95% bivariate confidence ellipses per group, marginal histograms, and points colored by group or local 2D density. Log scales for X and Y.Pearson correlation $r$ (with $p$-value), Spearman $\rho$, $R^2$, regression slope with standard error. In log-log scales, fits power-law distributions.
⏱ Time ViewTemporal trajectory kinetics: Mean ± SEM of intensity, instantaneous speed, displacement, or object counts across frames, with optional single-track traces.Temporal trend slope and Mann-Whitney U test between initial vs final timepoints.
🌐 Spatial ViewSpatial distribution map (XY, XZ, or YZ) colored by metric (Viridis) or class, with optional trajectory polylines.Clark-Evans Nearest Neighbor Aggregation Index ($R \approx 1$ random, $R < 1$ clustered, $R > 1$ regular dispersion) with analytical $z$-test in 2D or 3D volume.
Objects, Classes & Population Grouping

The left hierarchy enumerates active object classes (e.g., dendritic spines: Mushroom, Thin, Stubby, Filopodia; classifier-filtered spots; complete vs truncated tracks). Unchecking an item excludes those entities from plots and hypothesis tests. Group By determines comparative cohorts: Type, Class, Provenance (derived, manual, or edited), or Population (gated cohorts). Modeled metrics (e.g., spot equivalent spherical volume) are marked with ⚠ beneath plots and with an asterisk (*) in tables.

In Silico Image Cytometry: Multi-Channel Gating

For every segmented biological object, Vantage computes mean fluorescence intensity across all available channels over its discrete voxel mask (for spots, within its fitted radius). In multi-channel datasets, the 2D view opens with Channel 1 vs Channel 2 bivariate plots. Cytometric Gates are drawn directly onto the plot: Quadrants (single click places intersection crosshair, calculating four percentage quadrants), Rectangle (drag-to-draw), or Polygon (click vertices; double-click or click initial vertex to close; Esc cancels). Clicking 💾 Save Population registers the gate as a named population cohort; gated populations can be isolated in the 3D viewport, cross-compared in 1D views, and exported.

Validation: On a synthetic 3-channel phantom containing 220 cells across four known fluorophore proportions, auto-segmentation isolated all 220 cells and GFP/RFP cytometric quadrant gates reconstructed single-cell ground-truth proportions exactly (33 / 48 / 84 / 55).

Protocol: Scatter Plots and Cytometric Gating
  1. Acquire segmented objects via auto-tuning or wizards (Surfaces or Spots).
  2. Click 📊 Vantage in the top header and select 📊 2D View.
  3. Assign Metric (X Axis) and Metric (Y Axis) on the left panel (e.g., Mean Intensity · GFP vs Mean Intensity · RFP); enable log scale if intensities span multiple orders of magnitude.
  4. For cytometry: Set Point Color › By Density and select a Gate mode; draw gate boundaries and read percentage fractions.
  5. Click 💾 Save Population, set Group By › Population, and switch to 📈 1D View to compare gated sub-populations across morphometric traits (volume, sphericity).
  6. Click an individual scatter point to cross-highlight that cell in the 3D viewport and catalog; export data via 💾 Save as Excel / CSV and 📷 Snapshot SVG for publication vector figures.
Chapter 22

Advanced Morphometry & Dual-Diameter Dendritic Spine Analysis

Overcoming the optical diffraction limit in sub-micrometric dendritic spine necks ($50 - 200\,\text{nm}$) through the decoupled synthesis of 3D Euclidean distance transforms (inscribed spheres) and orthogonal transversal Gaussian fitting (FWHM).

Automated Four-Class Morphological Taxonomy
Morphological ClassFormal Mathematical CriteriaNeurobiological Significance
Mushroom$d_{\text{head}} / d_{\text{neck}} \ge 1.50 \land d_{\text{head}} \ge 0.40\,\mu\text{m}$Mature functional synapses, stable AMPA receptor clustering, and consolidated structural LTP.
Thin$L / d_{\text{head}} \ge 2.50 \land d_{\text{head}} < 0.40\,\mu\text{m}$Plastic "learning" spines with high turnover, highly susceptible to synaptic potentiation.
Stubby$L / d_{\text{neck}} \le 1.20 \land d_{\text{head}} / d_{\text{neck}} < 1.30$Transitional developmental structures abundant during early synaptogenesis.
Filopodia$L \ge 3.00\,\mu\text{m} \land d_{\text{head}} / d_{\text{neck}} \approx 1.00$Highly motile exploratory protrusions lacking consolidated postsynaptic densities.
Experimental Protocol: CA1 Structural Plasticity Following LTP Induction
  1. In 🌿 Filaments & Branches, trace the apical dendritic trunk under basal conditions (0 min) and click 🔬 Analyze Spines.
  2. Verify color-coded spine classification in the viewport: Green (*Mushroom*), Blue (*Thin*), Yellow (*Stubby*), Red (*Filopodia*).
  3. Repeat identical tracing on the 4D stack acquired at 45 min post-theta-burst stimulation (LTP).
  4. Quantify significant upregulation of linear spine density ($1.22 \to 1.95\,\text{spines}/\mu\text{m}$) and head enlargement ($+121\%$ mean volume in *Mushroom* spines).
  5. Generate box plots in Vantage with non-parametric Mann-Whitney U testing ($p < 0.001$) and export complete single-spine morphometric tables.
Chapter 23

Training Hub, Arena Mode & Seven Specialized Workspaces

In silico simulation environment featuring analytical ground-truth phantoms, multi-volume comparative screening via Arena Mode, and 7 contextual workspaces tailored to distinct experimental paradigms.

The Seven Contextual Workspaces
WorkspacePrimary Viewport DistributionProminent Control ModulesAnalytical Target
GeneralStandard balanced layoutSurpass, Channels, Measurements, StatisticsInitial data inspection and photometric verification.
SurfacesExpanded 3D viewport (75% width)Marching Cubes, Channel Masker, MorphometryVolumetric segmentation of tissue slices and organoids.
SpotsCentral viewport with floating LoG controlsSub-voxel LoG, Random Forest ML, ROI GatingHigh-throughput counting of vesicles, synapses, and γ-H2AX foci.
Filaments3D viewport coupled to Euclidean graphDijkstra Tracing, 3D Sholl, Dual Spine AnalysisQuantitative neuroanatomy and vascular arborisation.
TrackingExpanded 4D timeline docked beneath viewportBipartite Hungarian, MSD, Kinetic CurvesCellular motility, chemotaxis, and 4D vesicle trafficking.
ColocalizationDominant 2D scatter plot viewCostes, Pearson $r$, Manders $M_1/M_2$Molecular co-compartmentalization and proximity assays.
VantageCentral prioritized biostatistical canvasBox, violin, histograms, scatter, gates, 4D timeHypothesis testing, exploratory cytometric gating, figures.
Protocol: Evaluating Three Formulations with Uniform Parameters
  1. From 📁 Arena (project file browser) or via Ctrl+O, load the negative vehicle control and verify voxel calibration.
  2. Configure cell segmentation and Cy5 nanoparticle aggregate detection on the control; export workflow recipe (.mtzwf).
  3. Click 📦 Batch Processing and select all three formulation cohorts with experimental replicates: batch processing analyzes all files with identical parameters and compiles a unified CSV summary.
  4. Compare aggregate packaging density per cell across formulations in Vantage or statistical software, treating independent biological cultures as experimental units ($N$).
Chapter 24

Advanced Modules: AI Assistant, FAIR Evidence, Optical Restoration, AlphaFold, Voice, Audit, OME-Zarr & Live Sync

These advanced modules extend conventional bioimage visualization and morphometry. All features are fully functional in production: executing mathematical computations directly on your active datasets within declared operational parameters. Zero numerical values represent static placeholders.

Module Operational Status Matrix
ModuleProduction StatusOperational FunctionDeclared Boundary Limits
AI Assistant (Agent)AvailableExecutes real analytical tools in the browser and drafts accurate Methods summaries.Requires user API key or local Ollama daemon. Transmits metadata, never pixels.
FAIR CapsuleAvailableStandalone self-contained .html with SHA-256 hashes, calibration, figures, Methods (LaTeX), CSV, OBJ, and SVG.Omits raw gigabyte voxel arrays and interactive 3D WebGL renderer.
Richardson-Lucy DeconvolutionAvailable2D/3D iterative restoration using theoretical Gaussian PSFs; produces a restored channel.Theoretical PSF; CPU-bound Web Workers; datasets up to 40 Mvoxels.
AlphaFold DB IntegrationAvailable (Network required)Fetches predicted structures by UniProt ID, maps pLDDT confidence, and overlays Cα traces on spots.Structural prediction, not experimental structure; rendered magnified with scale indicator.
Voice Command ControlAvailableDirect speech navigation and voice-driven agent queries.Speech recognition handled by browser Web Speech API.
Scientific AuditorAvailableEvaluates pixel saturation, empty channels, assumed calibrations, non-Costes colocalisation, and Nyquist violations.Rule-based heuristics; never modifies parameters without user consent.
OME-Zarr StreamingAvailableStreams OME-NGFF 0.4/0.5 multiscale pyramids (Zarr v2 & v3) from local folders, drag-and-drop, or HTTP.Web streaming requires CORS; Snappy codec unsupported.
Live Sync Multi-UserAvailable (Network required)Real-time peer synchronization across workstations: camera viewpoint, channels, timepoints, 3D laser pointer, notes.Host plus up to 25 peers; streams full volumes up to 1 GB (2× downsampled above 1 GB); room expires after 12 h idle.
Vantage CytometryAvailableFour synchronized views of segmented objects, multi-channel intensity gating, and non-parametric hypothesis tests.Statistical tests assume independent observations: aggregate by biological replicate.
24.1 AI Assistant: Autonomous Execution Agent

Replaces legacy keyword matching with an autonomous agentic execution loop that directly triggers application tools, awaits quantitative outputs, and synthesizes empirical results (see AI Assistant chapter).

Example: Nuclear γ-H2AX Foci Following Ionizing Radiation
  1. Load confocal stack (Channel 1 DAPI, Channel 2 γ-H2AX) and confirm calibration in header.
  2. Open assistant (AI tab or Ctrl/⌘+K) and prompt: «Segment DAPI nuclei, detect channel 2 foci with 0.35 µm diameter, compute mean foci count per nucleus with 95% CI, and draft the Methods paragraph».
  3. The agent displays each tool execution step with real metrics; the auto-generated Methods paragraph compiles parameters and raw voxel SHA-256 signatures.
24.2 FAIR Research Capsule: Self-Contained Evidence for Peer Review

A single offline .html file: dataset identity (raw voxel SHA-256 hash), optical calibration, 1600 px figure render with physical scale bar, Materials & Methods text with LaTeX equations, comprehensive measurement CSV with provenance tags, Wavefront OBJ surface mesh (< 25 MB), and vector SVG Vantage charts. Unmeasured parameters display as «—». Omits raw gigabyte voxel payloads. Hashes evaluate over decoded voxel arrays: verify integrity by opening the same file in MTZ² and matching against the Reproducibility panel.

Protocol: Generating Supplementary Research Evidence
  1. Complete quantitative analysis; open Vantage once to generate vector plots.
  2. Open Innovations ▾ → 📦 FAIR Capsule, enter publication title and laboratory metadata, select components, and click 📦 Download FAIR Capsule (.html).
  3. Review the export summary manifest. Attach capsule to manuscript submission or deposit to Zenodo / Figshare alongside raw data archives.
24.3 Richardson-Lucy Iterative Deconvolution

Observed image $O$ represents true specimen $x$ convolved with PSF $H$, plus background $b$ and Poisson noise. Richardson-Lucy deconvolution (Richardson, 1972; Lucy, 1974) computes the maximum-likelihood estimate via multiplicative iteration:

$$x^{(k+1)} = x^{(k)} \cdot H^{\mathsf{T}}\!\left[ \frac{O}{H x^{(k)} + b} \right]$$

Enforces non-negativity while strictly conserving total radiant flux. Synthesizes a theoretical 3D Gaussian PSF (Zhang, Zerubia, & Olivo-Marin, 2007): $\sigma_{xy} = 0.21\,\lambda/\text{NA}$ and $\sigma_z = 0.66\,\lambda n/\text{NA}^2$ for widefield, each divided by $\sqrt{2}$ for confocal optics. Output compiles into a dedicated new channel («channel · RL n it.», 16-bit float); raw data is preserved. Evaluates each timepoint in 4D series. Summary panels report peak/background ratios, total flux ratios, iteration delta, and compute latency.

Validation: On a synthetic phantom (40 point emitters blurred by confocal PSF, Poisson noise), 20 iterations increased correlation with ground truth from 0.21 to 0.74 while strictly conserving total radiant energy (× 1.02).

Protocol: Synaptic Vesicles in 63×/1.40 Confocal Stacks
  1. Open Innovations ▾ → ⚡ Richardson-Lucy Deconvolution and select target channel.
  2. Set Confocal mode; $\lambda = 520\,\text{nm}$ (Alexa 488); $\text{NA} = 1.40$; $n = 1.518$. At $0.05 \times 0.05 \times 0.15\,\mu\text{m}$ voxel calibration, parameters report $\sigma_{xy} = 0.055\,\mu\text{m}$ (1.10 px) and $\sigma_z = 0.188\,\mu\text{m}$ (1.25 px).
  3. Set 15 iterations and click ⚡ Run Deconvolution; Cancel halts computation losslessly.
  4. Compare original raw channel against the restored channel; detect spots or segment surfaces over the «· RL 15 it.» channel.
Deconvolution Constraints
  • If voxel dimensions exceed PSF limits (Nyquist violation), deconvolution provides negligible sharpening; warned by the panel.
  • Under assumed calibrations, pixel PSF widths are arbitrary.
  • Exceeding 20–30 iterations amplifies high-frequency noise; flagged by the scientific auditor.
  • Theoretical PSFs do not account for coverslip refractive index mismatch; calibrate with fluorescent beads where feasible.
24.4 AlphaFold DB Macromolecular Structural Overlay

Retrieves predicted protein coordinates from AlphaFold DB (EMBL-EBI) via UniProt accession IDs (transmitting solely the identifier code), computes residue-by-residue pLDDT confidence (>90 very high, 70–90 high, 50–70 low, <50 intrinsically disordered), and renders Cα backbone ribbons colored by pLDDT at segmented spot centroids. Proteins measure single-digit nanometers — far below optical resolution limits: structures render magnified with on-screen scale multipliers. The overlay is exploratory and illustrative.

Protocol: Overlaying p53 within Nuclear Foci
  1. Detect spots in the anti-p53 fluorescent channel; open Innovations ▾ → 🧬 AlphaFold.
  2. Enter accession P04637 and click 🧬 Query Structure: the DNA-binding core reports high pLDDT while flexible terminal tails show disorder.
  3. Click 📍 Render in 3D Scene: structural ribbons position at spot centroids with declared magnification factors.
24.5 Voice Command Interface

In Local Voice Mode, direct speech commands control viewport orientation («frontal plane», «isometric»), channels («only green channel», «blue channel 60 percent»), rendering modes («MIP mode»), snapshot capture, and 4D playback. In AI Voice Mode, spoken queries stream directly to the autonomous assistant. Audio Privacy: Speech recognition executes client-side via the browser Web Speech API. No image pixels are ever transmitted.

Protocol: Hands-Free Microscope Documentation
  1. Press V or click 🎙️ Voice.
  2. Speak «isometric view», «only green channel», and «MIP mode».
  3. Speak «capture snapshot 4K»: a high-DPI export downloads automatically.
24.6 Scientific Auditor & Automated Integrity Auditing

Advisories diagnostic causes, provide corrective actions, and highlight relevant UI controls in the active panel. The auditor never modifies parameters autonomously. Identical advisories debounce for 60 seconds.

  • Dynamic Range Saturation: Triggers warning if >5% of voxels in any channel reach maximum saturation (255 in 8-bit; max present in 12/16-bit), where intensity ceases to scale linearly with fluorophore concentration. Flags empty channels.
  • Assumed Voxel Calibration: Alerts upon image load if voxel dimensions rely on unverified defaults.
  • Sub-Noise Manual Thresholds: Warns when manual isosurface thresholds fall below channel background noise ($\mu + 1.2\sigma$) or approach peak saturation.
  • Colocalisation Rigor: Recommends Costes statistical thresholding when manual thresholds are selected.
  • Deconvolution Integrity: Rejects unphysical optics ($\text{NA} \ge n$), warns if iterations exceed 30, and verifies Nyquist compliance.
  • Cross-Module Integrity: Prohibits correlating a channel against itself or derived channels; tracks size-excluded objects.
24.7 OME-Zarr: Multiscale Volumetric Pyramid Streaming

OME-Zarr (OME-NGFF 0.4 on Zarr v2 and 0.5 on Zarr v3) stores multi-dimensional pyramidal datasets chunked into compressed blocks. MTZ² parses directory schemas ($t/c/z/y/x$ axes, physical coordinate scales, channel names, OME-XML LUTs in omero) and reads chunk codecs: uncompressed, Blosc (BloscLZ, LZ4, Zlib, Zstd with byte/bit shuffling), Zstd, Gzip, and sharded v3 containers with crc32c integrity checks. Validated bit-for-bit across 25 official OME benchmark datasets.

Protocol: Opening OME-Zarr Datasets
  1. File ▾ (or Innovations ▾) → 🌐 Open OME-Zarr (Folder or URL)…
  2. Option 1: 📁 Select .zarr Folder… (or drag folder into 3D viewport). Option 2: Paste URL (https://…/image.zarr) and click 🔎 Inspect to examine resolution levels.
  3. Select optimal pyramid resolution level matching system RAM. Voxel calibration and channel false colors load automatically.
  4. Click ✓ Import: chunks stream dynamically on demand.
24.8 Multi-User Live Sync: Real-Time Collaborative Review

Enables synchronized multi-user exploration of 3D biological specimens across workstations: one Host and up to 25 remote peers. All participants follow the presenter's camera viewpoint, channel toggles, LUT transfer functions, rendering modes, and 4D timepoints, with real-time 3D laser pointers, spatial markers, and collaborative notes. Peers do not require local image files: the host browser streams raw image payloads securely over encrypted connections, verified via SHA-256 voxel hashes.

Peer Data Streaming Architecture

  • Peer-to-Peer WebRTC (DTLS Encryption): Standard transmission pathway. Image data routes directly between client browsers without passing through MTZ² servers; STUN servers (Cloudflare / Google) establish NAT traversal without inspecting data packets.
  • HTTPS Turn Relay Fallback: Employed when corporate or hospital firewalls block P2P WebRTC traffic, or when serving more than 3 simultaneous peer streams. The host uploads a single encrypted copy, which peers download asynchronously. Relayed copies purge immediately on session closure or after 12 h idle.
  • Full vs Adaptive Review Downsampling: Datasets up to 1 GB stream at 100% full bit-exact resolution (confirmed by matching SHA-256 signatures). Massive datasets exceeding 1 GB or streaming to mobile clients stream as an adaptive review copy (2× downsampled in XY; voxel metrics rescale so physical distances remain in $\mu\text{m}$). Review copies serve visual consultation; final measurements must execute on the native original.
  • Transfer Speeds: Data streams compressed (reducing 16-bit payloads by 50–70%). Over standard 20 Mbit/s connections, 250 MB stacks transfer in <60 s; local gigabit LAN transfers complete in seconds.
  • Session Lifecycle: Peer copies remain active in memory during the session. Clicking ⏹ Close for All immediately purges all received copies from remote client browsers.
Collaborative Review Example: Inter-Institutional Consultation

Scenario: Dr. Smith has a 420 MB 3-channel brain organoid CZI stack and requests consultation from an expert pathologist in another institution.

  1. Dr. Smith opens the dataset in MTZ², selects Innovations ▾ → 👥 Live Sync, and clicks 🚀 Open Review Session.
  2. Clicks 📋 Copy Link and sends the invitation URL to the colleague.
  3. Colleague opens the link and authenticates via Google. The browser receives the encrypted stream: «📥 Receiving organoid.czi from Dr. Smith: 37% of 420 MB · P2P DTLS encrypted».
  4. Upon reception, the colleague's viewport mirrors Dr. Smith's camera angle and false-color LUTs. SHA-256 hashes verify bit-exact data parity.
  5. Dr. Smith clicks 🔴 3D Laser Pointer to highlight a neuroepithelial rosette. The colleague places a spatial pin (+ Marker: «Atypical lumen?») and enters analytical notes. The colleague unchecks Follow Presenter Camera for independent exploration or clicks 🎤 Take Presenter Role to lead navigation.
  6. Upon session conclusion, clicking ⏹ Close for All terminates synchronization and purges peer memory caches.
Synchronized ElementsLocal Client Independence
Camera position, zoom, orientation, channel visibility, display windows, LUTs, render mode (Blend/MIP), 4D timeline.Quantitative analysis wizards: surfaces, spots, filaments, tracking, measurements, Vantage. Each user may run local pipelines without altering peer states.
3D laser pointer (4 s persistence), spatial markers (up to 200, 280 chars), and collaborative notes (up to 1,000 chars), with participant color tags.Local UI adjustments if the participant unchecks «Follow Presenter Camera» or «Mirror Display Settings».
Image data payload streaming (governed by host security settings).User account credentials remain private: only display names identify participants.
Troubleshooting Synchronized Sessions. «Host offline»: The host browser serves as the image data source and must remain open with the dataset loaded. «Direct P2P connection unavailable»: Enable the HTTPS server relay option in session settings. «⚠ Distinct image»: If opening a local file instead of receiving the stream, verify file identity via SHA-256 hashes.
24.9 AI Provider Hub Architecture
  • Anthropic Claude (claude-sonnet-5 default, claude-opus-5, claude-haiku-4-5): Recommended for complex multi-tool autonomous workflows and rigorous quantitative reporting.
  • OpenAI (gpt-4o-mini, gpt-4o, o1): Broad general capability; compatible with institutional private API proxies.
  • Google Gemini (gemini-2.5-flash-lite, gemini-2.5-flash, gemini-2.5-pro): High-speed interactive queries and generous rate allowances.
  • Local Ollama Daemons (qwen2.5, llama3.1, mistral-nemo): Zero data egress; compliant with strict hospital and clinical patient data regulations.

Providers receive structured text metadata exclusively (conversational history, session dimensions, voxel calibration, quantitative measurements). Raw image pixels and 3D voxels are never transmitted. API keys persist solely in local client storage.

Appendix A

Quick Reference Table: Common Fluorophores, Lasers and Spectral Channels

↔ Scroll table horizontally to inspect excitation/emission wavelengths, quantum yields and targets
MTZ² Channel Typical Fluorophore Excitation Laser $\lambda_{\text{ex}} / \lambda_{\text{em}}$ (nm) Quantum Yield ($\Phi$) Primary Biological Target
Ch 1 (Blue) DAPI / Hoechst 33342 Diode 405 nm 358 / 461 0.58 Nuclear DNA / AT minor groove
Ch 1 (Blue) mTagBFP2 Diode 405 nm 399 / 454 0.64 Recombinant protein fusion
Ch 2 (Green) EGFP Argon / DPSS 488 nm 488 / 507 0.60 Cytoskeleton / Actin / GFP fusion
Ch 2 (Green) Alexa Fluor 488 Argon / DPSS 488 nm 490 / 525 0.92 Secondary immunofluorescence
Ch 3 (Red) mCherry / TagRFP HeNe / Diode 561 nm 587 / 610 0.22 Dendritic spines / Synapses
Ch 3 (Red) Alexa Fluor 568 HeNe / Diode 561 nm 578 / 603 0.69 Vesicular trafficking markers
Ch 4 (Amber / Far-Red) Cy5 / Alexa Fluor 647 HeNe / Diode 633/640 nm 650 / 670 0.27 Microglia / Astrocytic endfeet / smFISH