Skip to content

Inspect in 3D

A 3D cube of the tissue volume, with the image and cell labels layered on, swings about 112° and back as the pointer drags the camera.

Place a cube window on the map, then orbit and slice image, labels and transcripts together.

import milume
w = milume.peek(sdata, image="mosaic", shapes="cell_boundaries_z")  # press I, then click the tissue
w.volume_cut  # cut-plane state after you slide the cross-section

Entering Inspect

Press I or click Inspect, then click the tissue to place a cube window. The top pill shows the window size, Save window and Exit Inspect (Esc).

The Inspect cube open: the top pill shows Exit, Inspect with the window size in µm, Save window, and full screen; the bottom toolbar has camera presets and layer toggles. The Inspect cube open: the top pill shows Exit, Inspect with the window size in µm, Save window, and full screen; the bottom toolbar has camera presets and layer toggles.

Inspect toolbar

The Inspect toolbar under the cube. Amber callouts: 1 camera Top / Iso / Side, 2 Move and Reset view, 3 Image, 4 Labels, 5 Points (Cross-section sits to their right). The Inspect toolbar under the cube. Amber callouts: 1 camera Top / Iso / Side, 2 Move and Reset view, 3 Image, 4 Labels, 5 Points (Cross-section sits to their right).
Control What it does
1 Top / Iso / Side Snap the camera to a top, oblique or side view.
2 Move Drag to pan the cube window on the map.
Reset view Return the cube camera to its default.
3 Image Show or hide the image layer. Right-click for palette, contrast, alpha, gamma and projection.
4 Labels Show or hide the cell meshes. Right-click for their opacity.
5 Points Show or hide the points layer.
Cross-section Slide a cut plane through the cube.

Cross-section

The pointer drags the cut slider: a cross-section plane sweeps through the cube and back; cell outlines stay visible on the cut.

See Synced traitlets for Inspect fields, and Constructor parameters for image= / shapes= on milume.peek. With several 3D images, pass image= to pick one. Stores without per-slice cell polygons (e.g. Xenium / CosMx) open Inspect image-only, with no cells; 2D image plus polygon rendering is tracked in #122.

Cell meshes run in an inline Web Worker. Strict notebook Content-Security-Policies must allow worker-src blob: (the defaults in JupyterLab and VS Code already do).