BigStitcher Lite - User Manual
Dragonfly Prototype Apps · BigStitcher Lite...
Version 1.0 · 2026-07-04
English Manual
Contents
1. Overview
2. Use Cases
3. Installation and Enabling
4. Runtime Environment and First-Run Setup
5. Interface Reference
6. Step-by-Step Usage
7. Parameter Reference
8. Outputs
9. FAQ and Troubleshooting
10. Notes and Known Limitations
11. References
1. Overview
BigStitcher Lite is a lightweight tile-stitching tool that runs inside Dragonfly. It takes multiple Dragonfly Channel tiles already loaded in your session, aligns them by translation, fuses them into one new stitched Channel, and also writes an offsets.csv listing the resolved offsets. The plugin is inspired by the BigStitcher use case but requires no Fiji, ImageJ, or Java - all stitching is done locally with Python scientific libraries.
Engine / algorithm. The stitching core is a pure-Python bigstitcher_core module built on three common libraries: numpy (array math and the fusion canvas), scipy, and scikit-image. When automatic offset estimation is chosen, translations are computed by scikit-image's skimage.registration.phase_cross_correlation (phase correlation); blending is done on a numpy canvas as mean, maximum, first-tile-wins, or last-tile-wins.
"Lite" scope. As the name says, this is a deliberately minimal version that focuses on the most common capability - translational stitching. It supports integer-voxel translation offsets only: no rotation, affine, or deformable registration, and it does not reproduce the full BigStitcher ecosystem of metadata importers, interest-point registration, or large-scale distributed processing.
Licensing notes. The plugin is an internal Dragonfly Prototype Apps tool. Its third-party dependencies (NumPy, SciPy, scikit-image) are permissively licensed (BSD / 3-clause family) and are installed from PyPI into the plugin's own isolated virtual environment during first-time setup - kept separate from Dragonfly's bundled Python.
On Dragonfly 2027.1 (Python 3.14) the bundled Python cannot build this environment: install a python.org Python (3.12, 3.13 or 3.14) and enter it in the panel's Base Python field; Dragonfly 2025.1 needs no separate Python.
2. Use Cases
This plugin fits when you have a tiled acquisition already loaded into Dragonfly as several Channels and want a quick, lightweight translational stitch or preview fusion done inside Dragonfly. Typical scenarios:
- Microscopy: fluorescence, confocal, or widefield fields captured as multiple tiles with known or estimable X/Y translation offsets.
- CT / tomography: a large sample scanned in sub-regions, producing several volume blocks to be joined along Z/Y/X.
- Other tiled data: any 2D or 3D Channels already loaded in Dragonfly that differ only by translation.
- Quick preview fusion: before doing a full, precise registration, use phase correlation to get a first alignment and judge whether tile order and overlap look reasonable.
This plugin targets the "just stitch it and take a look" need. If your data requires rotation/affine registration, precise overlap-aware pairwise registration, or large-scale distributed processing, use a dedicated full stitching solution; BigStitcher Lite does not cover those advanced features.
3. Installation and Enabling
1. Download the Prototype Apps online package from ImageFly and extract it. Close Dragonfly, run install_prototype_apps.exe and select the Dragonfly version to install into.
2. Start Dragonfly, open Prototype Apps ▸ App Store and search for BigStitcher Lite. If an Enable button is shown, click it and follow the sign-in, download or installation prompts.
3. Restart Dragonfly when prompted, then open BigStitcher Lite from the Prototype Apps menu. Return to App Store to enable or disable it later.
To uninstall all Prototype Apps, close Dragonfly and run uninstall_prototype_apps.exe from the online package.
4. Runtime Environment and First-Run Setup
BigStitcher Lite isolates its dependencies in a dedicated virtual environment (venv): the stitching computation runs in a separate Python subprocess and does not pollute Dragonfly's own Python. Before first use you build this environment once from the Setup tab.
4.1 What Setup Environment does
Clicking Setup Environment (numpy + scipy + scikit-image) on the Setup tab makes the plugin:
1. On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.
2. Create a venv subfolder inside the plugin's code directory as the isolated environment.
3. Upgrade that environment's pip, then install numpy, scipy, and scikit-image from PyPI over the internet.
4. On success, write the new venv python path back into the Analysis venv python field and save it to the configuration.
4.2 Download size and internet / hardware requirements
- Internet required: only during the first Setup, to download numpy / scipy / scikit-image and their dependencies from PyPI. Everyday stitching afterwards needs no internet.
- Download size: the three libraries and their dependencies total roughly a few hundred MB (exact size depends on network and pip resolution). Allow disk space and time.
- No GPU required: stitching is CPU-only.
- No Fiji / ImageJ / Java required: everything is done by Python libraries, with no external software.
- No WSL required: the plugin runs natively on Windows.
4.3 Where the environment is installed
Once enabled, the plugin code is copied into the current user's Dragonfly extensions directory (under %LOCALAPPDATA%\comet\<Dragonfly version>\pythonUserExtensions). The relevant writable paths are:
- Virtual environment: a
venvsubdirectory created inside the installed code directoryGenericMenuItems\BigStitcherLite, built by the panel's Setup Environment button. - Job root: default
C:\BigStitcherLiteJobs. Each run creates a timestamped subfolder (likebigstitcher_lite_YYYYMMDD_HHMMSS) to hold the exported tiles and stitched results. The Job root can be changed on the Setup tab.
4.4 Fallback if setup fails
If auto-detection finds no usable Base Python, or the chosen interpreter lacks a working pip, Setup reports an error in the status bar and log. In that case:
- Use Browse... to point at a
python.exethat definitely has pip (e.g. a system Python or Miniconda'spython.exe), then retry Setup. - Confirm your network can reach PyPI (a corporate proxy / firewall may block pip downloads).
- Read the log panel at the bottom; it prints the Base Python choice, the pip install commands, and exit codes to help diagnose the issue.
5. Interface Reference
The panel header reads "BigStitcher Lite for Dragonfly - translational tile stitching for Channels". The body is four tabs: Setup, Tiles, Stitch, Summary. At the bottom are a green status line and a read-only log box that show the current status and run output.
5.1 Setup tab
- Analysis venv python (text field): the venv python path actually used for stitching. Usually filled in automatically by Setup Environment; you may also paste a ready venv python path.
- On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.
- Job root (text field): the job root directory, default
C:\BigStitcherLiteJobs. - Setup Environment (numpy + scipy + scikit-image) (button): creates the venv and installs the dependencies.
- Note text: reminds you that no Fiji/ImageJ/Java is used and that manual offsets are in voxel Z/Y/X coordinates.
5.2 Tiles tab
- Channel (dropdown): lists the Channels available in the current Dragonfly session (showing title and shape).
- Refresh (button): re-scans and refreshes the available Channel list.
- Add Tile (button): adds the currently selected Channel as a tile in the table below, with an initial offset of (0, 0, 0).
- tile table: six columns -
Tile(index),Title,Shape,Offset Z,Offset Y,Offset X. The three offset columns are editable in-cell; enter integer voxel offsets. - Remove Selected (button): removes the currently selected row (tile) from the table.
- Clear (button): empties the whole tile list.
5.3 Stitch tab
Split into a "Registration and blending" group and an "Output" group, with the run button at the bottom.
- Offset mode (dropdown): the source of offsets. Options are
Manual offsets(default),Estimate: phase correlation to previous tile, andEstimate: phase correlation to first tile. - Blend mode (dropdown): the fusion rule. Options are
Mean blend(default),Max intensity,First tile wins, andLast tile wins. - Phase upsample (integer spinbox, range 1-100, default 1): the phase-correlation upsampling factor; higher gives finer sub-voxel alignment but is slower.
- Fill value (double spinbox, default 0.0): the value used for canvas regions not covered by any tile.
- Normalize each tile by percentiles before stitching (checkbox, default off): normalizes each tile by percentiles before stitching.
- Percentile low (double spinbox, range 0-100, default 1.0) and Percentile high (range 0-100, default 99.0): the lower/upper normalization percentiles. Effective only when normalization is on.
- Output Channel (text field, default
BigStitcher Lite stitched): the title of the output stitched Channel. - Run Stitching (blue button): runs the stitch.
5.4 Summary tab
- Summary table: two columns
Metric/Value, showing key metrics of the run after stitching completes (tile count, output shape, blend mode, offset mode, origin offset, etc.). On success, the panel automatically switches to this tab.
6. Step-by-Step Usage
Below is the full end-to-end flow from scratch. Prerequisite: you already have at least two Channel tiles loaded in Dragonfly that belong to the same dataset and differ only by translation.
6.1 One-time preparation
1. Open Prototype Apps > BigStitcher Lite....
2. Go to the Setup tab; optionally fill in Base Python or change Job root - defaults are usually fine.
3. Click Setup Environment, wait for the log to report completion, the Analysis venv python field to be filled in, and the status bar to show "Environment ready.".
6.2 Build the tile list
1. Go to the Tiles tab and click Refresh to scan the session's Channels.
2. Select the first tile in the Channel dropdown and click Add Tile; repeat to add the remaining tiles in stitching order (at least two).
3. In the table's Offset Z / Offset Y / Offset X columns, enter each tile's integer voxel offset relative to the global coordinate system. If you intend to auto-estimate with phase correlation, you can leave them at 0.
4. Use Remove Selected to delete a wrong row, or Clear to start over.
6.3 Set registration/blending and run
1. Go to the Stitch tab and choose an Offset mode: use Manual offsets if you typed offsets, or a phase-correlation mode (to previous or first tile) to auto-estimate translation.
2. Choose a Blend mode (default Mean blend), and adjust Phase upsample, Fill value, and whether to Normalize (and its percentiles) as needed.
3. Enter the output Channel title in Output Channel (default BigStitcher Lite stitched).
4. Click Run Stitching. The plugin exports each tile, resolves offsets and blends in the venv subprocess, with progress shown in the log.
5. On completion the panel switches to the Summary tab, the status bar shows a success message (including the offsets.csv path and output Channel name), and the stitched Channel appears in Dragonfly's object list.
Two conditions must hold before running: at least two tiles added; Setup completed (Analysis venv python is non-empty). Otherwise the status bar prompts "Add at least two Channel tiles first." or "Run Setup first...".
7. Parameter Reference
Parameter | Default | Description |
Base Python | (blank = auto-detect) | On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python. |
Analysis venv python | (filled by Setup) | The venv python path actually used by the stitching subprocess. |
Job root | C:\BigStitcherLiteJobs | Job root directory; each run creates a timestamped subfolder for intermediate and result files. |
Offset mode | Manual offsets (manual) | Offset source: manual / phase correlation to previous tile / phase correlation to first tile. |
Blend mode | Mean blend (mean) | Fusion rule for overlapping canvas regions: mean / max / first-tile-wins / last-tile-wins. |
Phase upsample | 1 | Phase-correlation upsampling factor (1-100); higher = finer sub-voxel precision, slower. Only in phase-correlation modes. |
Fill value | 0.0 | Value written to canvas regions not covered by any tile. |
Normalize by percentiles | off (False) | Whether to percentile-clip and normalize each tile to 0-1 before stitching. |
Percentile low | 1.0 | Lower normalization percentile (0-100); effective only when normalization is on. |
Percentile high | 99.0 | Upper normalization percentile (0-100); effective only when normalization is on. |
Output Channel | BigStitcher Lite stitched | Title of the generated stitched Channel. |
Tile Offset Z/Y/X | 0 / 0 / 0 | Per-tile integer voxel translation offsets entered in the Tiles table. |
8. Outputs
A successful stitch produces the following:
- Stitched Channel: a new Dragonfly Channel (titled as entered in Output Channel), published directly into the current scene. Its voxel spacing is copied from the first tile, and its origin is shifted by the minimum of all tile offsets so it stays in a consistent spatial coordinate system with the source data. It appears in Dragonfly's object tree and can be viewed in 2D/3D like any Channel.
- offsets.csv: an offsets listing containing each tile's index, title, and final
offset_z / offset_y / offset_x(global voxel coordinates). It sits in this run's job subfolder. - Summary metrics: the metrics shown in the Summary tab table, including
n_tiles,output_shape,blend_mode,offset_mode, andorigin_offset_zyx. - Intermediate files: the job subfolder also keeps the exported per-tile data,
export.json,config.json,status.json,results.json, andstitched.npyfor troubleshooting and reuse.
How to view. After stitching, find the newly created Channel in Dragonfly's object list and double-click it or drag it into a view to display it. To check whether alignment looks right, inspect the overlap boundaries in a 3D view, or open offsets.csv in the job folder to verify each tile's final offset.
9. FAQ and Troubleshooting
Q1: After clicking Run Stitching I get "Add at least two Channel tiles first."
Stitching needs at least two tiles. Go to the Tiles tab, click Refresh, then Add Tile each Channel from the dropdown so the table has at least two rows, and run again from the Stitch tab.
Q2: It says "Run Setup first, or set the analysis venv python."
There is no usable analysis venv yet. Go to the Setup tab and click Setup Environment to build it once; on success the Analysis venv python field fills in automatically. If you already have a usable venv, you can paste its python path into that field.
Q3: Setup fails with no Base Python or no usable pip in the log
Auto-detection did not find an interpreter with pip. Use Browse... on the Setup tab to point at a python.exe that definitely has pip (e.g. a system Python or Miniconda's python.exe), confirm the network can reach PyPI (proxy / firewall may block it), then retry.
Q4: The stitched result is misaligned - what can I do?
The plugin only does integer-voxel translation, not rotation / scaling / affine. If manual offsets are off, try a phase-correlation mode to auto-estimate; if the data contains rotation or deformation, phase correlation cannot correct it either - that is a known "Lite" limitation. You can also raise Phase upsample for finer alignment, or enable Normalize so tiles with large brightness differences match more easily.
Q5: The Channel dropdown is empty / I can't find my tiles
The plugin can only stitch Channels already loaded in the Dragonfly session. Load the tiles in Dragonfly first, then go to the Tiles tab and click Refresh to re-scan. The status bar shows "Found N Channel(s).".
Q6: I can't see BigStitcher Lite in the menu after installing
Confirm that BigStitcher Lite is enabled in Prototype Apps ▸ App Store, then restart Dragonfly.
10. Notes and Known Limitations
- Translation only: handles integer voxel Z/Y/X offsets only - no rotation, affine, or deformable registration.
- Manual metadata: tile order and offsets are organized manually in the table; this version does not import acquisition metadata / stage coordinates.
- Phase correlation is a helper: estimated translations are not guaranteed equivalent to proper stage coordinates or overlap-aware pairwise registration - review results manually.
- Memory footprint: the fusion canvas size depends on all tile shapes and offset range; more tiles and larger offsets mean a larger canvas and more memory.
- Geometry consistency: the output Channel's spacing is copied from the first tile; make sure all tiles use a consistent voxel spacing, or the stitched result's spatial scale may be wrong.
- Internet on first run only: only Setup needs internet to install dependencies; everyday stitching works offline.
11. References
- scikit-image phase-correlation registration:
skimage.registration.phase_cross_correlation(https://scikit-image.org). - NumPy (https://numpy.org) and SciPy (https://scipy.org): the underlying array and scientific computing libraries.
- BigStitcher (design inspiration; full stitching ecosystem): https://imagej.net/plugins/bigstitcher/.
- For online installation and plugin activation, see Chapter 3.