2D Snapshots (spine/snapshot2D)¶
Modular 2D image generation for NIfTI data. Supports axial/sagittal/coronal slices, maximum intensity projections (MIPs), and segmentation overlays.
Key symbols¶
| Symbol | Module | Description |
|---|---|---|
create_snapshot |
snapshot_modular.py |
Main entry point — renders a list of Snapshot_Frame objects to a PNG |
Snapshot_Frame |
snapshot_modular.py |
Configuration for one image panel (image, overlay, view direction, …) |
Plane |
snapshot_modular.py |
Enum: Plane.axial, Plane.sagittal, Plane.coronal |
to_image_nii |
snapshot_modular.py |
Convert a NIfTI slice to a matplotlib-ready RGB array |
| Pre-built templates | snapshot_templates.py |
Ready-to-use snapshot configurations for common spine workflows |