Technical note: SpekPy Web—online x‐ray spectrum calculations using an interface to the SpekPy toolkit

Robert Vorbau,Gavin Poludniowski
DOI: https://doi.org/10.1002/acm2.14301
2024-02-18
Journal of Applied Clinical Medical Physics
Abstract:Knowledge of the photon spectrum emitted from an x‐ray tube is frequently needed in imaging and dosimetry contexts. As the spectrum characteristics are influenced by several parameters and routine measurement of a spectrum is often impractical, a variety of software programs have been developed over the decades for convenient calculations. SpekPy is a state‐of‐the‐art software package containing several spectrum models, and was created to estimate photon spectra originating from x‐ray tubes using a small set of input parameters (e.g., anode material, anode angle, tube potential, filtration, etc.). SpekPy is distributed as a Python toolkit and is available free of charge. The toolkit does, however, lack a graphical user interface and a user is required to write a Python script to make use of it. In this work this limitation is addressed by introducing a web application called SpekPy Web: a graphical user interface together with an application programmable interface (API). These developments both make the SpekPy spectrum models accessible to a broader set of users and increases the ease of use for existing users. SpekPy Web is hosted at: https://spekpy.smile.ki.se. The functionality of the software is demonstrated, using its API, by estimating first half‐value layers (HVLs) for 15 standard beam qualities from the International Bureau of Weights and Measures (BIPM). The estimated HVLs were found to all be within 3.5% agreement when compared to experimental values, with an average calculation time of 2.5 s per spectrum. half‐value‐layer, software, x‐ray spectrum
radiology, nuclear medicine & medical imaging
What problem does this paper attempt to address?