Rust DICOM Station - architecture

Rust DICOM Station - architecture An architecture diagram generated by Archify. DICOM export · dicom_export · dicomseg · Architecture component DICOM export dicom_export · dicomseg MPR & 3D views · views · render · mesh3d · d3 · Architecture component MPR & 3D views views · render · mesh3d · d3 DICOM on disk · folders · network drives · Architecture component DICOM on disk folders · network drives Loader · scan · classify · reconstruct · Architecture component · rayon Loader scan · classify · reconstruct rayon Study model · volumes · structures · dose · plans · Architecture component Study model volumes · structures · dose · plans Application shell · menus · data tree · tool windows · Architecture component · egui / eframe Application shell menus · data tree · tool windows egui / eframe Local archive · studies filed by patient · Architecture component · PACS Local archive studies filed by patient PACS RT & geometry tools · DVH · DRR · 4D motion · algebra · Architecture component RT & geometry tools DVH · DRR · 4D motion · algebra Job runner · worker thread · progress channel · Architecture component Job runner worker thread · progress channel Registration · elastix · plastimatch · landmark · Architecture component Registration elastix · plastimatch · landmark TotalSegmentator · nnU-Net · 117 classes · Inference stack - one nn:: runtime on burn (wgpu GPU / ndarray CPU) TotalSegmentator nnU-Net · 117 classes SegVol · text & point prompts, 3D · Inference stack - one nn:: runtime on burn (wgpu GPU / ndarray CPU) SegVol text & point prompts, 3D MedSAM2 · box prompt · slice propagation · Inference stack - one nn:: runtime on burn (wgpu GPU / ndarray CPU) MedSAM2 box prompt · slice propagation two-pass read file a folder restore a study volumes + RT objects CT · RTSTRUCT · SEG · RTDOSE writes DICOM files as a data tree slices, contours, dose spawn · poll each frame results land in the tree Inference stack - one nn:: runtime on burn (wgpu GPU / ndarray CPU)

Data

  • • A header-only scan classifies every file; a parallel read then reconstructs what was selected
  • • Volumes, RTSTRUCT, RTDOSE, RTPLAN and SEG share one patient-coordinate geometry

Application

  • • egui / eframe on wgpu - one or two rows of three linked MPR views
  • • Every long operation snapshots its inputs, runs on a worker thread and reports on one channel

Inference

  • • TotalSegmentator, SegVol and MedSAM2 re-implemented in pure Rust
  • • Checkpoints download on first use and are cached as safetensors; GPU via wgpu, CPU fallback