HistoSeg#

StructureMap-guided semantic contours and 3D Xenium tissue reconstruction.

HistoSeg is a Python toolkit centered on same-sample, multi-slice Xenium contour reconstruction. It turns Cell-GPS Search-and-Find/StructureMap-guided or curated structure groups into continuous semantic contours, then aligns neighboring contour slices, builds 3D contour stacks, exports PLY/OBJ meshes, and writes QC artifacts. histoseg.contour and histoseg.he support the 2D spatial and image workflows that prepare those structures for reconstruction.

Note

Start with 3D Reconstruction when the goal is a multi-slice Xenium contour stack or 3D mesh. Use Contour Analysis to generate 2D structures from cell-coordinate data, and H&E Analysis when the primary input is an image.

Start Here#

Explore By Workflow#

Project And Internals#