Repository navigation
v0.0.5
Publication-ready Figure composer workspace, Zero-Freeze ML Cell Detection (StarDist and
InstanSeg) with canonical 512×512 batched-volume inference and server-side viewport
rasterization, Edge-Snapping Sobel Magic Wand, pure-Rust syntect code editor & @lucem.op
pipeline scripts with zero-copy /dev/shm IPC, lucem[web] Python wheel, and a 108-page
documentation & interactive Python course overhaul.
Added
FigurePublication Composer workspace (5th tab) (lucem-app-core): MVVM multi-panel
publication figure builder with All channels + Merge and Pipeline stages presets,
interactive scroll-wheel zoom and drag-to-pan per panel, Linked zoom / Single view toggle,
one-click ROI crop sync, calibrated scale bars (Autoor25 µm–1 mm), Dark/White/Black
artboard backgrounds, and high-DPI Export PNG / SVG.- Server-side cell & tile viewport rasterization (
hist/raster) (lucem-hist,
lucem-app-core): QuPath/Cytomine-style viewport raster endpoint that renders visible cell and
nucleus boundaries on the server into a compact ~20 KB PNG overlay so slides with 100k+ cells
render and pan at 60 FPS in the browser without downloading megabytes of polygon JSON. - Canonical
512×512batched-volume ML inference & VRAM eviction (lucem-core::compute::batch,
lucem-model-stardist,lucem-model-instanseg,lucem-hist): fixed512×512(384 + 2×64)
tile shapes eliminate per-ROI CubeCL autotune stalls (28–32 ms/tilewarm on CUDA),
LUCEM_ML_BATCH(1..=8) scales batch volume to GPU VRAM, and idle ML plugins are automatically
evicted on model switch. - Edge-Snapping Sobel Magic Wand (
lucem-app-core): multi-channel Sobel gradient-magnitude
edge barrier, 3×3 neighborhood adaptive seed statistics, 1-pass morphological hole closing,
drag-to-add sweep,Alt-to-erase, and a Snap to edges toolbar toggle. - Code editor,
@lucem.opscripts &/dev/shmPython pool (lucem-app-core,lucem-py):
pure-Rustsyntectsyntax highlighting on desktop and WebAssembly,@lucem.opparameter comment
parser with live UI sliders, zero-copy/dev/shmshared-memory IPC in the warm Python worker
pool, nativerufflint/format buttons, and 7 runnableplayground/scripts. lucem[web](lucem-web) Python package &lucem.web.serve()(bindings/python):
platform-independent wheel bundling the browser WebAssembly app (uv run lucem web --open).- Live Pixel Probe HUD (
lucem-app-core): bottom status bar displays real-time cursor(x, y)
coordinates inµmand raw per-channel intensity values under the cursor. - Documentation & Python Course overhaul (108 pages) (
docs/): single-row header, side-by-side
hero showcase, Learn › Python interactive 3-module course, Reference › Python API,
Coming from QuPath / napari migration guides, Performance & Architecture guide, and
llms.txt.
Changed
- Zero-bounce GPU pipeline & histology ops (
lucem-ops,lucem-pipeline,lucem-hist,
lucem-io): added CubeCL device kernels forMaskUnion,MaskIntersect,MaskSubtract,
MaskInvert,MaskImage,ChannelRatio,NormalizedDiff, andChannelProduct; kept cell
detection linear combinations, Euclidean distance Gaussian smoothing, watershed inversion, SLIC
channel averaging, andrun_specblock normalization/halo-cropping on the GPU; cached multi-channel
Zarr chunks inGLOBAL_CHUNK_CACHE; replacedHashMap-basedtrace_labelscontour chaining with
a flat Rayon-parallel sorted-edge tracer (~15×faster on 100k+ cells).
Fixed
- Browser WASM panics after remote histology completes: guarded
std::time::SystemTime::now()
inSession::pushandrayon::par_iter()inHierarchy::buildonwasm32-unknown-unknown, and
unconditionally routed served-browser histology and pipeline compute tolucem serve. - Multiview channel bleed: non-active channels in Multiview grid cards no longer inherit DAPI
when channel 0 is toggled off.
Install
The library crates from crates.io: cargo add lucem (core, io, ops, ml) and the others
(lucem-hist, lucem-pipeline, lucem-view, lucem-hub). The app and the lucem
command build from this tag: cargo install --git https://github.com/neuro-kitchen/lucem --tag v0.0.5 lucem-cli.
Python: pip install lucem==0.0.5.