Large TIFF, Atlas Overlays & Brain 3D Reconstruction#
Beyond behavioral videos, Annolid supports gigapixel / multi-page microscopy TIFFs (.tif, .tiff, .ome.tif), Illustrator vector atlas overlays (.svg, .ai, .pdf), and interactive sagittal-to-coronal Brain 3D reconstruction — keeping every edited polygon compatible with standard LabelMe page annotations.
Fig. 52 Annolid connects tiled large-image microscopy, landmark-aligned vector atlases, and editable sagittal-to-coronal 3D brain region reconstruction in one workflow.#
1. Install Optional Large-Image Support#
Standard annolid[gui] installs launch normally without large-image dependencies. For gigapixel whole-slide or multi-page OME-TIFF microscopy, install the optional large_image extra:
pip install "annolid[large_image]"
This activates tifffile, pyvips, and openslide-python when available (installing native libvips or OpenSlide gives the fastest tiled pan/zoom responsiveness).
2. Fast Viewing & Vector Atlas Alignment#
Open your
.tif/.ome.tifviaFile → Open.For very large non-pyramidal TIFFs, run
File → Optimize Large TIFF for Fast Viewing…to build a reusable pyramidal cache (manage disk space anytime underFile → Large TIFF Cache Info…orClear Current TIFF Cache…).Import an anatomy drawing via
File → Import Vector Overlay…(SVG, PDF-compatible Illustrator.ai, or.pdf). Annolid preserves the imported source geometry as immutable provenance and creates an editable correction layer on top.Use the unified Layers and Vector Overlays docks to adjust visibility, opacity, scale, rotation, and z-order.
Landmark-based affine alignment: Place corresponding landmarks on your histology image and vector overlay, click
Pair Selectedfor 3+ matches, and clickAlign Points.Export corrected contours via
File → Export Corrected Overlay…(SVG, overlay JSON, or LabelMe JSON).
3. Sagittal-to-Coronal Brain 3D Reconstruction#
When you have annotated polygons across a stack of sagittal brain sections and want synchronized coronal contours plus a 3D mesh preview:
Open your sagittal stack and annotations in Annolid.
Run
View → Build Brain 3D Model…and configure coronal spacing or plane count, contour point resampling, longitudinal/in-plane smoothing, and optional reference snapping.Open the dock via
View → Open Brain 3D Sessionand generate coronal slices withView → Regenerate Coronal Planes.Open the interactive Three.js 3D preview via
View → Open Brain 3D Preview— clicking any region in 3D automatically highlights the region in the dock and jumps to the nearest coronal plane!
Iterative Coronal Editing Loop#
Select a coronal plane in the Brain 3D Session dock and refine any polygon directly on the 2D canvas.
Use
Create Region On Plane,Hide Region On Plane, orRestore Region On Planeto control regional presence cleanly.Click
Apply Current Edits(or pressCtrl+S): Annolid updates the canonical 3D artifact (otherData["brain_3d_model"]) first and regenerates affected nearby coronal planes automatically.
Note
If you later modify the original sagittal source polygons, Annolid flags the canonical 3D artifact as invalidated so you can rebuild cleanly rather than silently serving stale coronal slices. See Large TIFF & Atlas Overlays and Brain 3D Reconstruction on the Docs Portal for detailed API references.