How pytomography/spectpsftoolbox works
SPECT Point Spread Function Toolbox is a Python library for constructing and fitting distance-dependent SPECT point-spread-function models, then using the resulting operators with PyTomography. Its runtime building blocks are 1D and 2D kernel models, image operators that apply or compose those kernels, utilities for operator geometry, and SIMIND readers for simulated projection data and geometry. The README documents model development and PyTomography use, but not a specific fitting orchestrator or the connections between SIMIND import and model fitting; those links are therefore not inferred.
Main entry points: operator2d.py Operator composition · kernel1d.py 1D kernels · kernel2d.py 2D kernels · simind_io.py Projection reader
Components 12
Simulation input
- Projection reader
src/spectpsftoolbox/simind_io.py
PSF models
- 1D kernels
src/spectpsftoolbox/kernel1d.py - 2D kernels
src/spectpsftoolbox/kernel2d.py
Image operations
- Operator composition
src/spectpsftoolbox/operator2d.py - Rotated 1D operators
src/spectpsftoolbox/operator2d.py - 2D kernel operator
src/spectpsftoolbox/operator2d.py - Sampled PSF operator
src/spectpsftoolbox/operator2d.py - Gaussian operator
src/spectpsftoolbox/operator2d.py
Operator support
- Padding and grids
src/spectpsftoolbox/utils.py
Other components
- Model developer
- SIMIND files
- PyTomography
Connections 13
- Model developer → Projection reader: loads data
src/spectpsftoolbox/simind_io.py - SIMIND files → Projection reader: provides files
src/spectpsftoolbox/simind_io.py - Model developer → 1D kernels: develops models
README.md - Model developer → 2D kernels: develops models
README.md - Model developer → Operator composition: uses operators
README.md - Operator composition → 1D kernels: uses kernels
src/spectpsftoolbox/operator2d.py - Operator composition → 2D kernels: uses kernels
src/spectpsftoolbox/operator2d.py - Operator composition → Padding and grids: uses padding
src/spectpsftoolbox/operator2d.py - Rotated 1D operators → 1D kernels: evaluates kernel
src/spectpsftoolbox/operator2d.py - 2D kernel operator → 2D kernels: evaluates kernel
src/spectpsftoolbox/operator2d.py - Sampled PSF operator → Padding and grids: uses padding
src/spectpsftoolbox/operator2d.py - Gaussian operator → 1D kernels: uses kernel
src/spectpsftoolbox/operator2d.py - Operator composition → PyTomography: models load into
README.md