Dual-Energy CT Toolkit: Projection, Decomposition & Reconstruction (Python + FBP)
Build and understand a complete dual-energy CT imaging pipeline β from raw fan-beam projections, to material decomposition, to full water/bone image reconstruction.
This toolkit gives you clean, readable Python scripts that you can run, modify, and extend for your own research, demos, or learning.
π Whatβs Included
β Projection Generator
β’ Poly-energetic fan-beam forward projector
β’ Realistic 80 kVp + 140 kVp spectra
β’ Water + bone phantom with controllable geometry
β’ Outputs low- and high-energy sinograms
β Material Decomposition Module
β’ Linear 2Γ2 inversion
β’ Newton-based iterative refinement
β’ Returns pure material sinograms (L_water, L_bone)
β Reconstruction Engine
β’ Fan-beam FBP with ramp filtering
β’ Full-scan, Parker weighting, and generalized redundancy support
β’ 512Γ512 water and bone reconstructions
β’ Raw float32 output compatible with ImageJ, Slicer, Fiji, etc.
β Example Phantom + Ready-to-Run Demo
β’ Generates projections β decomposition β reconstruction
β’ Perfect for teaching, research, or algorithm testing
π§ Why This Toolkit?
Most CT examples online stop at projections or at reconstruction.
This package gives you the entire pipeline end-to-end, with clear physics, readable code, and modular functions that you can drop into your own projects.
Use it to:
β’ Learn dual-energy physics
β’ Build your own CT simulation tools
β’ Validate ML reconstruction algorithms
β’ Create teaching demos and YouTube explanations
β’ Experiment with material imaging workflows
π§ Who Is This For?
β Medical physicists
β ML researchers (CT physics)
β Imaging scientists
β Students learning CT reconstruction
β Anyone building simulation-based pipelines