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.
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 Path | Control / Trigger |
|---|---|---|
| AI Assistant (Autonomous workflows & Q&A) | Right panel → 🤖 AI (or Ctrl/⌘ + K) | Send |
| Close Vantage or Arena | Vantage 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 / Probes | Analyze Text |
| Channels & False-Color LUTs | Left panel → 🎨 Channels LUT | — |
| Colocalisation Analysis | Right panel → 🟣 Coloc | — |
| Descriptive Statistics | Right panel → 📊 Statistics | — |
| Interactive 3D Ruler | Floating viewport toolbar | 📏 |
| Provenance, Session, Batch, Teaching | Top menu bar | 🔬 Reproducibility |
| Validate Optical Instrument | 🔬 Reproducibility | «Validate Instrument» tab |
| Import Image Stack | Top menu bar | 📂 Load Image / Stack |
| High-Resolution Publication Figure | Top menu bar | 📷 Snapshot HD (Ctrl+S) |
| Canonical 3D Views | 3D toolbar / Fullscreen / View Menu | 🌐 Iso, ⬆️ XY, ➡️ XZ, ↗️ YZ |
| Toggle Floating Panels | Keyboard shortcuts / Header | Alt+1, Alt+2, Alt+3, Alt+4 |
| Reset Panels to Factory Defaults | Panels Menu / Keyboard | ↺ Reset (Alt+0) |
| Sample / Series Traceability | Central top header | SAMPLE: (LED ●) |
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.
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
- File › Import Images. Leave resolution at Native. If calibration is unknown, click «I don't know the calibration — work in voxels».
- Upon loading, nuclei are automatically segmented using parameters measured directly from the image; Wizards › 🧊 Surfaces displays the channel and values.
- Compare contours with visual inspection; if needed, adjust threshold, diameter or range and click ⚡ Create Surfaces (✨ Auto-adjust re-measures).
- Or ask the AI Assistant: «Count nuclei and report mean area».
- File › Export CSV Statistics.
R.2 Curating Results Manually
- Right panel, 🗂 Objects tab.
- Click on an object: it highlights in 3D and its properties panel opens.
- Delete inappropriate items; rename or recolor with Apply changes.
- + Sphere manually adds an object missed by the algorithm.
- The Show filter isolates manual or edited items.
R.3 Comparing Two Markers
- Right panel, 🟣 Coloc tab.
- Select the two channels. Derived channels are omitted: correlating a channel calculated from others yields artificially inflated coefficients by construction.
- Leave automatic thresholding active for initial assessment and inspect the scatter plot.
- Evaluate Pearson and Manders coefficients alongside confidence intervals, not merely central estimates.
R.4 Preparing a Publication Figure
- Adjust orientation using left-click drag and scroll wheel zoom.
- For clean imagery without bounding cage or grid, uncheck Surpass Tree › 📐 Micrometric Scale Box. The scale bar remains visible.
- Snapshot HD exports PNG with recalculated physical scale bar.
- Reproducibility › Methods Paragraph generates methodology text with exact parameters, including manually curated objects.
- Save Session preserves parameters and manual objects.
R.5 Exporting 3D Meshes for 3D Printing (STL) and CAD / Blender (OBJ)
- Load confocal stack and open the Surfaces Wizard.
- Set channel, threshold, and diameter. Use coverage slider ($O(1)$ CDF lookup) to eliminate background noise without stalling the interface.
- Click Create Surfaces to generate watertight isosurfaces via Marching Cubes.
- 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
- Open file with File › Load Image / Stack (Ctrl/⌘ + O) or drag onto viewport. Prior TIFF export from vendor software is unnecessary.
- 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.
- Verify voxel calibration (read from file). If downsampling warning appears, allocate more Image Memory or accept downsampling (formally tracked).
- Click Import: channel names and pseudocolors are preserved, and 4D player adopts acquisition time intervals.
R.7 Axial Penetration and Aberration Diagnosis in Maximized View (Canonical Views)
- Import confocal stack or pick Pyramidal Neuron demo sample in header.
- Maximize viewport with M or Maximize / Fullscreen in 3D navigation bar. Viewport expands to 100% display area.
- In floating 3D controls, locate 3D View and click Frontal Plane XZ (➡️). Camera locks perpendicular to the axial plane.
- 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.
- 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}}}$$
- Click Lateral Plane YZ (↗️) to verify sagittal symmetry.
- Click Isometric 3D (🌐) to return to free 3D perspective and capture figure with Ctrl+S.
R.8 Ergonomic Multi-Monitor Workspace Setup (PanelManager)
- In control bar of Left Panel (Surpass / Channels), click undock button ❐ (or press Alt+1). Panel detaches as a glassmorphic floating window.
- Click and drag top handle ⋮⋮ to secondary monitor or screen corner.
- Resize window by dragging bottom-right corner grip ⤡.
- Repeat for Right Panel (❐ or Alt+2) and 4D Timeline (Alt+3).
- WebGL canvas dynamically resizes to 100% remaining space, recalculating projection matrix.
- Docking tabs: Hiding a panel with ✕ creates an edge tab (🌳 Left or 📊 Right) to restore it instantly.
- Persistence: Custom window layouts persist across sessions via
localStorage. - 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:)
- Select optical slices via File › Load Image / Stack (Ctrl+O) or drag into 3D viewport.
- In calibration dialog, specify physical voxel size ($dx, dy, dz$).
- Inspect top header: LED turns emerald green (●) indicating loaded physical data, and SAMPLE: shows detected prefix:
📁 cell01 (40 slices). - Hover over block to open provenance tooltip: confirm dimensions ($X \times Y \times Z$), channels, and calibration source.
- 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 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.
| Domain | What Changed | Scientific Significance | Reference |
|---|---|---|---|
| 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 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.
Setup and Connection
- 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.
- 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.
- Type or dictate your prompt. Enter sends; Shift + Enter adds a new line; Stop (or Esc inside the prompt box) halts the agent immediately.
| Provider | Models | Best 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). |
Capabilities & Supported Tools
| Category | Tools | Example Query |
|---|---|---|
| Inspect | Session state; descriptive metrics (n, mean, SD, median, 95% CI via Student's t); manual search | «What is the mean equivalent diameter of segmented nuclei?» |
| Load | Built-in demo samples; file selection prompt (browser security requires user click on «Choose Images») | «I want to load my liver CZI datasets» |
| Visualise | 2D / 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» |
| Analyze | Surfaces (auto-adjust or parameters), spots, colocalisation, filaments & Sholl, 4D tracking, series playback | «Run LAMP1 vs protein X colocalisation with Costes significance test» |
| Export | Measurement CSVs, HD viewport snapshots, Materials & Methods text, STL/OBJ meshes | «Draft a publication methods paragraph describing this analysis» |
| UI Navigation | Open 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
| Field | Prompt | Assistant 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. |
User: «Count nuclei and give me the mean area.»
- Inspecting session state → 2D image 1920 × 1920 px, voxel 0.4 µm, default calibration.
- Segmenting objects (auto-adjust) → 641 objects; measured diameter 20.2 µm; SNR 13:1.
- 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 Condition | Likely Cause | Corrective Action |
|---|---|---|
| «Invalid API key or unauthorized» | Typo in key, revoked token, or depleted billing balance | Generate a fresh API key in provider console and update in ⚙. |
| «Model not found or unavailable» | Model deprecated or excluded from tier | Select 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 reached | Wait 60 s or upgrade provider tier limit. |
| «Failed to connect» | Network offline, corporate proxy firewall, or local daemon offline | Verify network access; for Ollama, confirm daemon is running and OLLAMA_ORIGINS is configured. |
| «Local model does not support tool calling» | Model lacks function calling capabilities | Switch to llama3.1, qwen2.5, or certified tool-calling model. |
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
- 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.
- 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.
- Segmentation & Morphometry: Measures each segmented object: surface area (2D) or volume (3D), equivalent spherical/circular diameter, mean and peak intensity, and centroid spatial coordinates.
- 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
- 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.
- 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.
- 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.
- Characteristic Equivalent Diameter: $d = 2\times$ area-weighted median of maximum Euclidean distance transform depths across regions.
- 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.
- 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.
- 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 Dataset | Description | F1 (Static Defaults) | F1 (Auto-Tuned) |
|---|---|---|---|
| BBBC039 (Broad Bioimage Benchmark Collection) | U2OS osteosarcoma nuclei stained with Hoechst, expert masks; withheld test split | 0.005 | 0.899 |
| BBBC038 / Data Science Bowl 2018 | Diverse 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.
Histological tissue section: 1920 × 1920 pixels, DAPI nuclear staining with green and red immunofluorescence markers.
- 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.
- 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².
- 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.
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.
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.
3D Volume Rendering Engine
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 Correlation | 0.436 | 0.946 |
| High-Frequency Detail Correlation (High-Pass) | 0.125 | 0.947 |
| Sub-Resolution Spot Detectability | 38% | 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).
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 Target | Characteristic Size | Recommended Optics | MTZ² Tool Module |
|---|---|---|---|
| Mammalian Nucleus | 8–20 µm | 20×/0.75 for counting; 40–63× for chromatin morphometry | Surfaces (Auto-tune) |
| Human Erythrocyte | ≈ 7.5 µm diameter | 40–63× | Surfaces / Spots |
| Yeast (Candida albicans) | 3–6 µm | 63×/1.4 | Surfaces |
| Bacillus (Escherichia coli) | ≈ 0.5 × 2 µm | 63–100×/1.4; pixel ≤ 0.08 µm | Surfaces (diameter ~1 µm) |
| Coccus (Staphylococcus aureus) | ≈ 0.5–1 µm | 100×/1.45 | Spots or Surfaces |
| Mycobacteria | ≈ 0.3 × 2–4 µm | 100×/1.45 | Surfaces / Filaments |
| FISH Signal, γH2AX Focus, Synaptic Vesicle | ≈ 0.2–0.5 µm (Diffraction Limit) | 63–100×/1.4 | Spots Wizard |
| Virion | 20–300 nm (Sub-diffraction) | Detected exclusively as unresolved puncta without morphology | Spots Wizard |
Histopathology: Ki-67 Proliferation Index via Immunofluorescence
Acquisition: DAPI (Channel 1) and Ki-67 (Channel 2), 20–40× magnification, identical laser power and detector gain across test cohorts and controls.
- Segment DAPI nuclei using Auto-tuning: total nuclear count $N$.
- 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.
- 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
Acquisition: 63–100×/1.4 oil immersion; Green (SYTO 9, membrane-permeant, total cells) and Red (Propidium Iodide, membrane-compromised, dead cells).
- Segment red channel (dead cells, $m$) and green channel (live cells, $v$); ensure measured diameter is calibrated to ~1 µm.
- Calculate viability ratio $= v/(v+m)$. Example: $m = 186$ of 1426 total cells → 13.0% mortality (95% CI: 11.4–14.9%).
- 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
Acquisition: 63–100×/1.4 with full 3D Z-stack spanning entire nuclear depth; DAPI, gene-specific probe, and centromeric reference probe.
- Segment nuclei (DAPI) and exclude overlapping clusters or boundary-truncated nuclei.
- 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.
- 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
- Confirm dynamic range without pixel saturation across channels; verify chromatic aberration correction using 100 nm multi-spectral fluorescent beads.
- Coloc Tab: Select LAMP1 and protein X channels, enable automated Costes thresholding, and compute Monte Carlo randomization significance ($p$-value).
- 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.
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:
MIP mode is ideal for resolving dendritic arbors, microvascular capillary networks, and cytoskeletal actin filaments exhibiting high contrast over dark background.
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.
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.
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.
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.
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.
| Format | Support Level | Extracted File Metadata |
|---|---|---|
| TIFF, OME-TIFF & BigTIFF | ✅ Native Direct | Raw 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 Direct | Uncompressed 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 Direct | All 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 Direct | Channels, Z-planes, timepoints, axial step, and interval (XY calibration entered manually for ImageJ hyperstacks) |
| PNG / JPEG / WebP | ✅ Numbered Series | Natural numerical sorting; uncalibrated default voxels |
| JPEG Inside TIFF Container | ⚠️ Lossy Caution | Opens with lossy warning: suitable for visual inspection, invalid for quantitative radiometry |
| Raw Multi-Page Without Metadata | ⚠️ Declare Channels | Dialog prompts for channel count declaration |
| Nikon ND2, Olympus OIR/VSI & Others | ❌ Export to OME-TIFF | Export 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.
- 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.
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.
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.
PhysicalSizeX/Y/Z attributes that the loader parses automatically, eliminating manual entry and transcription errors.
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.
- With OME-XML: De-interleaves automatically according to
SizeC,SizeZ, andDimensionOrder. 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.
When downsampling a stack in XY, physical voxel dimensions scale by the identical inverse factor simultaneously:
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.
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
- 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-Gly67in EGFP andMet66-Tyr67-Gly68in mCherry), mapping the sequence to its corresponding spectral detection channel.
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.
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):
To eliminate spatial aliasing artifacts, the physical voxel grid must satisfy the Nyquist-Shannon sampling theorem:
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.
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.
6.1 The Five Pipeline Steps
The wizard is located under Wizards › 🧊 Surfaces:
- Source Channel: The fluorescent signal from which object boundaries emerge.
- Gaussian Smoothing: Suppresses Poisson noise grain prior to isosurface extraction.
- Intensity Threshold: Delineates authentic fluorescent signal from background noise floor.
- Separation of Touching Objects: Watershed topological partitioning based on characteristic diameter.
- Size Gating (Volume / Area Filter): Excludes sub-resolution debris and multi-cellular aggregates.
6.2 Protocol Example: Counting Nuclei
- 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.
- Select Target Channel: Choose the nuclear fluorophore channel (e.g., DAPI / Hoechst). Only raw acquired channels are offered.
- 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.
- 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.
- Specify Expected Diameter: Enter characteristic cell diameter or click «Estimate from signal». This parameter guides the watershed algorithm in separating touching nuclei.
- Set Size Range & Execute: Specify minimum and maximum size gates, then click ⚡ Create Surfaces.
- Review Morphometry Summary: Review created objects, size-excluded candidates, and median volume. If counts diverge from visual inspection, adjust the diameter parameter.
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.
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:
- 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.
- 3D Local Maxima: Evaluates 26-voxel volumetric neighborhoods with deterministic plateau tie-breaking.
- 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).
- 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.
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.).
- Thresholding & Distance Transforms: Distance transforms incorporate physical anisotropic voxel weights, yielding local radii in $\mu\text{m}$ rather than voxel units.
- Automated Soma Root Identification: Resolves the global maximum of the distance map — corresponding to the thickest morphological node (cell soma in neurons).
- 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.
- 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.
- 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.
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.
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.
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.
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.
Independent of absolute fluorophore intensity ratios: ideal when labeling efficiencies or quantum yields differ significantly between probes.
- 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.
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.
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.
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.
Navigation and Workflow
- Load a time-series dataset featuring multiple timepoints: Mitosis, Microvascular Network, or Phagocytosis from the top sample dropdown.
- Left panel → 🌳 Surpass Tree tab.
- Click ◯ 4D Trajectories. The panel automatically transitions to the ⚙️ Wizards tab, displaying the 🕑 4D Particle Tracking wizard.
- 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.
- 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.
Inter-frame spatial linking is resolved through global combinatorial assignment (Hungarian algorithm) rather than greedy nearest-neighbor heuristics.
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.
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.
- 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$.
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$).
- 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.
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).
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%.
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.
- 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.
- Click point 1, click point 2. Cyan spherical markers anchor each endpoint, connected by a dashed 3D line.
- 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.
- Logs accumulate in the Measurements tab, recording 3D spatial coordinates ($x, y, z$) for both endpoints.
- Clicking 📏 again toggles ruler mode off and removes on-screen viewport pins while retaining tabular records.
Ray-Picking Intersection Hierarchy
- 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.
- 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.
- If no signal is intersected along the sightline, no anchor is placed, reporting an explicit diagnostic warning rather than hallucinating arbitrary coordinates.
- 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.
Measurements export to CSV with 3D endpoint coordinates, surface target classifications, and ISO 8601 timestamps, preserved across sessions.
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.
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.
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.
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.
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.
- 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.
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).
Saves thresholds, channels, false-color LUTs, segmented objects, measurements, and camera coordinates into a portable .mtz2.json file or URL fragment.
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.
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.
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 Phantom | Analytical Ground Truth | Measured Value | Empirical Error |
|---|---|---|---|
| Sphere Volume ($R = 8\ \mu\text{m}$) | 2144.66 $\mu\text{m}^3$ | 2141.47 $\mu\text{m}^3$ | −0.1% |
| Surface Area | 804.25 $\mu\text{m}^2$ | 803.62 $\mu\text{m}^2$ | −0.1% |
| Sphericity Factor | 1.000 | 1.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 voxel | 0.002 $\mu\text{m}$ | 1.3% of a voxel |
This validation suite executes automatically during continuous integration builds (6 test suites, 131 assertions), halting deployment if numerical tolerances diverge.
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 Exercise | Target Metric | Acceptance Tolerance | Biophysical Learning Concept |
|---|---|---|---|
| Organelle Volume | Volume ($\mu\text{m}^3$) | ±10% | Segmentation stability vs threshold selection |
| Synaptic Vesicle Count | Spot enumeration | ±15% | Why global thresholding fails under non-uniform background |
| Colocalisation | Pearson 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.
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
- Left panel → 🌳 Surpass Tree → ◉ Classifier.
- Select the target channel to segment.
- Check Enable Brush. The viewport switches to synchronized orthogonal slice planes where brush annotations are drawn.
- Under class Object, paint over obvious cellular structure; under Background, paint over empty extracellular space. To resolve multi-class targets, add classes via + Class.
- Click Train & Classify.
- Inspect classification predictions and paint corrective strokes exclusively where errors occur. Retrain.
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.
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.
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.
| Imaging Scenario | Optimal Global Threshold | Random Forest Classifier |
|---|---|---|
| Non-overlapping intensities | IoU 1.000 | IoU 0.962 |
| Identical intensity, distinct spatial texture | IoU 0.077 | IoU 0.810 |
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.
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.
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.
| Parameter | Zeiss CZI (ZISRAW) | Leica LIF (LMSDataContainer) |
|---|---|---|
| Structure | Header, subblock directory, XML metadata, and chunked pixel subblocks | Project 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 & Codecs | Gray8/16/32 and BGR 8/16; uncompressed and Zstd (JPEG XR unsupported) | 8, 12, 16, and 32-bit uncompressed |
| Channels & Time | Channel 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 Containers | Scenes (user selection), coordinate mosaics, and Lightsheet multi-angle views | All acquisition series (user selection); first mosaic tile with advisory |
- Open file via File › Load Image / Stack or drag directly onto the viewport.
- 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.
- Dataset displays adopting microscope acquisition LUTs and display bounds (falling back to auto-percentiles if absent). Adjust dynamic range in channel cards.
Reconstructed Marching Cubes isosurfaces export with metric precision:
| Format | Target Applications | Technical Specifications |
|---|---|---|
| Binary STL (.stl) | 3D Printing, PrusaSlicer, Bambu Studio, Cura, CAD | IEEE 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 suites | Vertices $x,y,z$ in physical $\mu\text{m}$, area-weighted smooth vertex normals ($vn$), polygonal faces ($f$) for smooth shading |
| Module / Function | Conventional Approach | MTZ² Modern Engine | Measured Speedup |
|---|---|---|---|
| Spearman Colocalisation | Quicksort $O(N \log N)$ (35 s on $10^7$ vx) | Linear cumulative histogram $O(N)$ | > 1,700× (< 20 ms) |
| 4D Tracking Linker | Global Hungarian $O(N^3)$ (8,500 ms/frame) | Sparse bipartite decomposition $R_{\max}$ | > 4,000× (2 ms/frame) |
| GPU Raymarching | Exhaustive volumetric sampling | Empty-space skipping ($\max < 0.002 \to 2\Delta t$) | 3× to 5× FPS (60 FPS) |
| 3D Spots Rendering | 3,500 individual scene graph meshes | THREE.InstancedMesh in 1 draw call | 1 draw call (0.3 ms CPU) |
| Watershed Transform | 540,000 transient TypedArrays (GC stalls) | Pre-allocated static buffer pools | Zero heap churn (70% faster) |
| Coverage Slider | Iterative volume re-thresholding $O(N)$ | Binary search $O(1)$ over 16-bit CDF | Instantaneous (< 0.02 ms) |
| Volumetric VRAM | Unstructured dense arrays | Sparse $64^3$ chunked pyramids | 60% VRAM reduction, $O(1)$ ROI |
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.
| Template Pipeline | Analysis Steps | Representative Output |
|---|---|---|
| Dendritic Spine Morphometry | Filaments → Spine Wizard → Vantage | Sholl profiles, spine linear density, head calibers via FWHM & inscribed sphere |
| Subcellular Cytometry | Cells / Nuclei → Confined Spots → Per-Cell Cargo | Probe foci count per nucleus and frequency distributions |
| Tumor Microenvironment | Tumor Isosurface → Binary Mask → Intra/Peritumoral Cells | Intratumoral infiltration ratio vs peritumoral stroma |
| 4D Particle Kinematics | Per-Frame Spot Detection → Hungarian Linker → Kinetics | Mean velocity, track straightness, and apparent diffusion (MSD) |
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.
- Load negative control specimen and verify optical voxel calibration.
- In 🧊 Surfaces, set MAP2 dendritic threshold; in 🔴 Spots, configure Bassoon presynaptic channel (radius 0.20 µm). Inspect 3D detection fidelity.
- Export pipeline recipe via 💾 Export Workflow (.mtzwf) for provenance archiving.
- In 📦 Batch, select all 24 experimental cohort files and export aggregate CSV summary.
- Treat independent wells as experimental units ($N$): compare cohort means via Welch's $t$-test or linear mixed-effects models with 95% confidence intervals.
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.
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$.
- In 🧊 3D Surfaces, segment nuclei on Ch1 (DAPI) via local Otsu with volume gating $V \in [180, 850]\,\mu\text{m}^3$.
- In 🔴 Spots Wizard, select Ch2 ($\gamma$-H2AX) and assign nuclear surface in «🎯 Constrain to ROI (Surface)».
- 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.
- Click 🔍 Detect 3D Spots.
- Inspect 📊 Statistics tab for per-nucleus foci counts and volumetric packaging density ($\text{foci}/\mu\text{m}^3$).
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 Module | Annotation Target | Feature Descriptors | Ensemble Architecture |
|---|---|---|---|
| ML Spot Filter | Clicks in 3D viewport on true vs false puncta | 8 descriptors ($\mathbb{R}^8$): fitted radius, peak/mean intensity, local background, SNR, FWHM, contrast, DoG response | 20 Decision Trees |
| Orthogonal Brush Classifier | Multi-class brush strokes on slice planes | 13 descriptors/voxel: intensity and multiscale Gaussian, gradient, DoG, and variance at $\sigma \in \{1, 2, 4\}$ px | 40 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).
- In 🔴 Spots, detect puncta using a sensitive threshold to avoid missing dim signals.
- 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).
- Click Train: panel reports sample size, OOB accuracy, dominant feature descriptor, and compute time.
- 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.
- In Classifier Wizard, select DAPI channel with classes «Nucleus» and «Background».
- Paint training strokes across superficial and deep Z-planes: models learn only features present in training data.
- Click ⚡ Train & Classify, inspect deep planes, and paint corrective strokes on misclassified regions.
- Click 🧊 Measure this class as isosurface to export calibrated volumes and cell counts.
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).
| Mode | Mathematical Formulation | Biomedical 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. |
- In 🧊 Surfaces, segment the Tom20 mitochondrial channel (auto-tune or manual parameters) and click ⚡ Create Surfaces.
- Under 🎭 Mask a channel with these objects, select the mCherry-Parkin channel and set mode to Inside Only (Zero Outside); click 🎭 Create Masked Channel.
- Record the fractional intensity of Parkin enclosed within mitochondrial volumes reported in the panel; compare against baseline control cells acquired at identical detector gain.
- 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².
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.
| Tab View | Visual Representation | Statistical Tests & Metrics |
|---|---|---|
| 📈 1D View | Single 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 View | Bivariate 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 View | Temporal 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 View | Spatial 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. |
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.
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).
- Acquire segmented objects via auto-tuning or wizards (Surfaces or Spots).
- Click 📊 Vantage in the top header and select 📊 2D View.
- 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.
- For cytometry: Set Point Color › By Density and select a Gate mode; draw gate boundaries and read percentage fractions.
- Click 💾 Save Population, set Group By › Population, and switch to 📈 1D View to compare gated sub-populations across morphometric traits (volume, sphericity).
- 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.
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).
| Morphological Class | Formal Mathematical Criteria | Neurobiological 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. |
- In 🌿 Filaments & Branches, trace the apical dendritic trunk under basal conditions (0 min) and click 🔬 Analyze Spines.
- Verify color-coded spine classification in the viewport: Green (*Mushroom*), Blue (*Thin*), Yellow (*Stubby*), Red (*Filopodia*).
- Repeat identical tracing on the 4D stack acquired at 45 min post-theta-burst stimulation (LTP).
- 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).
- Generate box plots in Vantage with non-parametric Mann-Whitney U testing ($p < 0.001$) and export complete single-spine morphometric tables.
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.
| Workspace | Primary Viewport Distribution | Prominent Control Modules | Analytical Target |
|---|---|---|---|
| General | Standard balanced layout | Surpass, Channels, Measurements, Statistics | Initial data inspection and photometric verification. |
| Surfaces | Expanded 3D viewport (75% width) | Marching Cubes, Channel Masker, Morphometry | Volumetric segmentation of tissue slices and organoids. |
| Spots | Central viewport with floating LoG controls | Sub-voxel LoG, Random Forest ML, ROI Gating | High-throughput counting of vesicles, synapses, and γ-H2AX foci. |
| Filaments | 3D viewport coupled to Euclidean graph | Dijkstra Tracing, 3D Sholl, Dual Spine Analysis | Quantitative neuroanatomy and vascular arborisation. |
| Tracking | Expanded 4D timeline docked beneath viewport | Bipartite Hungarian, MSD, Kinetic Curves | Cellular motility, chemotaxis, and 4D vesicle trafficking. |
| Colocalization | Dominant 2D scatter plot view | Costes, Pearson $r$, Manders $M_1/M_2$ | Molecular co-compartmentalization and proximity assays. |
| Vantage | Central prioritized biostatistical canvas | Box, violin, histograms, scatter, gates, 4D time | Hypothesis testing, exploratory cytometric gating, figures. |
- From 📁 Arena (project file browser) or via Ctrl+O, load the negative vehicle control and verify voxel calibration.
- Configure cell segmentation and Cy5 nanoparticle aggregate detection on the control; export workflow recipe (.mtzwf).
- 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.
- Compare aggregate packaging density per cell across formulations in Vantage or statistical software, treating independent biological cultures as experimental units ($N$).
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 | Production Status | Operational Function | Declared Boundary Limits |
|---|---|---|---|
| AI Assistant (Agent) | Available | Executes real analytical tools in the browser and drafts accurate Methods summaries. | Requires user API key or local Ollama daemon. Transmits metadata, never pixels. |
| FAIR Capsule | Available | Standalone 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 Deconvolution | Available | 2D/3D iterative restoration using theoretical Gaussian PSFs; produces a restored channel. | Theoretical PSF; CPU-bound Web Workers; datasets up to 40 Mvoxels. |
| AlphaFold DB Integration | Available (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 Control | Available | Direct speech navigation and voice-driven agent queries. | Speech recognition handled by browser Web Speech API. |
| Scientific Auditor | Available | Evaluates pixel saturation, empty channels, assumed calibrations, non-Costes colocalisation, and Nyquist violations. | Rule-based heuristics; never modifies parameters without user consent. |
| OME-Zarr Streaming | Available | Streams 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-User | Available (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 Cytometry | Available | Four synchronized views of segmented objects, multi-channel intensity gating, and non-parametric hypothesis tests. | Statistical tests assume independent observations: aggregate by biological replicate. |
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).
- Load confocal stack (Channel 1 DAPI, Channel 2 γ-H2AX) and confirm calibration in header.
- 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».
- The agent displays each tool execution step with real metrics; the auto-generated Methods paragraph compiles parameters and raw voxel SHA-256 signatures.
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.
- Complete quantitative analysis; open Vantage once to generate vector plots.
- Open Innovations ▾ → 📦 FAIR Capsule, enter publication title and laboratory metadata, select components, and click 📦 Download FAIR Capsule (.html).
- Review the export summary manifest. Attach capsule to manuscript submission or deposit to Zenodo / Figshare alongside raw data archives.
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:
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).
- Open Innovations ▾ → ⚡ Richardson-Lucy Deconvolution and select target channel.
- 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).
- Set 15 iterations and click ⚡ Run Deconvolution; Cancel halts computation losslessly.
- Compare original raw channel against the restored channel; detect spots or segment surfaces over the «· RL 15 it.» channel.
- 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.
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.
- Detect spots in the anti-p53 fluorescent channel; open Innovations ▾ → 🧬 AlphaFold.
- Enter accession
P04637and click 🧬 Query Structure: the DNA-binding core reports high pLDDT while flexible terminal tails show disorder. - Click 📍 Render in 3D Scene: structural ribbons position at spot centroids with declared magnification factors.
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.
- Press V or click 🎙️ Voice.
- Speak «isometric view», «only green channel», and «MIP mode».
- Speak «capture snapshot 4K»: a high-DPI export downloads automatically.
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.
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.
- File ▾ (or Innovations ▾) → 🌐 Open OME-Zarr (Folder or URL)…
- 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. - Select optimal pyramid resolution level matching system RAM. Voxel calibration and channel false colors load automatically.
- Click ✓ Import: chunks stream dynamically on demand.
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.
Scenario: Dr. Smith has a 420 MB 3-channel brain organoid CZI stack and requests consultation from an expert pathologist in another institution.
- Dr. Smith opens the dataset in MTZ², selects Innovations ▾ → 👥 Live Sync, and clicks 🚀 Open Review Session.
- Clicks 📋 Copy Link and sends the invitation URL to the colleague.
- 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».
- Upon reception, the colleague's viewport mirrors Dr. Smith's camera angle and false-color LUTs. SHA-256 hashes verify bit-exact data parity.
- 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.
- Upon session conclusion, clicking ⏹ Close for All terminates synchronization and purges peer memory caches.
| Synchronized Elements | Local 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. |
- Anthropic Claude (
claude-sonnet-5default,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.
Quick Reference Table: Common Fluorophores, Lasers and Spectral Channels
| 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 |