{"id":23088845,"url":"https://github.com/kylechampley/xrayphysics","last_synced_at":"2025-08-16T07:31:52.173Z","repository":{"id":209918413,"uuid":"725261915","full_name":"kylechampley/XrayPhysics","owner":"kylechampley","description":"C/C++ library and Python bindings for x-ray cross sections, x-ray source spectra modeling, multi-material beam hardening correction, and dual energy decomposition algorithms","archived":false,"fork":false,"pushed_at":"2024-11-08T21:19:21.000Z","size":2339,"stargazers_count":24,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-08T22:24:21.591Z","etag":null,"topics":["beamhardening","bremsstrahlung","computed-tomography","cross-sections","dect","leap","spectra","tomography","x-ray-physics","x-ray-simulation"],"latest_commit_sha":null,"homepage":"https://xrayphysics.readthedocs.io","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kylechampley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-29T19:21:24.000Z","updated_at":"2024-11-08T21:19:25.000Z","dependencies_parsed_at":"2024-01-05T19:46:55.032Z","dependency_job_id":"e984da05-b266-4ec6-944e-c4eaab27222c","html_url":"https://github.com/kylechampley/XrayPhysics","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.4117647058823529,"last_synced_commit":"5b7b8750431d6cce83da4e13e6019de725537cac"},"previous_names":["kylechampley/xrayphysics"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylechampley%2FXrayPhysics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylechampley%2FXrayPhysics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylechampley%2FXrayPhysics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylechampley%2FXrayPhysics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylechampley","download_url":"https://codeload.github.com/kylechampley/XrayPhysics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230019806,"owners_count":18160604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beamhardening","bremsstrahlung","computed-tomography","cross-sections","dect","leap","spectra","tomography","x-ray-physics","x-ray-simulation"],"created_at":"2024-12-16T20:18:15.633Z","updated_at":"2024-12-16T20:18:16.277Z","avatar_url":"https://github.com/kylechampley.png","language":"C++","readme":"# XrayPhysics\nThis is a C/C++ library (Linux, Windows, Mac) with Python bindings with the following capabilities:\n1) x-ray cross sections (energies from 1 keV to 20 MeV and elements 1-100) specified by chemical formula or element/compound mass fractions\n2) incoherent and coherent x-ray scattering angle distributions specified by chemical formula or element/compound mass fractions\n3) x-ray source spectra modeling (for any source voltage and take-off angle, and the following anode types: Cu, Mo, W, Au)\n4) one- and two-material beam hardening correction algorithms (theoretically exact and polynomial-based)\n5) Calculation of the LLNL-defined effective atomic number; For more information see [here](https://ieeexplore.ieee.org/document/8638824)\n6) dual energy decomposition algorithms (and SIRZ if used in conjuction with [LEAP](https://github.com/LLNL/LEAP))\n\nThere are very few dependencies and we don't use any specialized data structures, making it very easy to incorporate with other software packages.  The cross section tables are hard-coded into C++ arrays, so queries of the database are instant.\n\n![The x-ray source models are at least as accurate as TASMICS and much more flexible.](https://github.com/kylechampley/XrayPhysics/blob/main/comparisonWithTASMICS.png)\n\nThe x-ray source models are at least as accurate as TASMICS and much more flexible.  The cross section tables are based on [EPDL97.](https://www-nds.iaea.org/epdl97/)\n\n\n## Installation and Usage\n\nDocumentation is available [here](https://xrayphysics.readthedocs.io/)\n\nInstallation and usage information is posted on the [wiki page](https://github.com/kylechampley/XrayPhysics/wiki)\n\nDesigned to be used in conjuction with (but is not required) [LEAP](https://github.com/LLNL/LEAP) \n\n## Author\nKyle Champley (champley@gmail.com)\n\n\n## License\nXrayPhysics is distributed under the terms of the MIT license. All new contributions must be made under this license. See LICENSE in this directory for the terms of the license.\nSee [LICENSE](LICENSE) for more details.  \nSPDX-License-Identifier: MIT  \n\nPlease cite our work by referencing this github page and the following papers:  \n\n[SIRZ](https://ieeexplore.ieee.org/document/8638824)  \nChampley, Kyle M., Stephen G. Azevedo, Isaac M. Seetho, Steven M. Glenn, Larry D. McMichael, Jerel A. Smith, Jeffrey S. Kallman, William D. Brown, and Harry E. Martz. \"Method to extract system-independent material properties from dual-energy X-ray CT.\" IEEE Transactions on Nuclear Science 66, no. 3 (2019): 674-686.\n\n[BHC](https://www.osti.gov/servlets/purl/1158895)  \nKyle Champley and Timo Bremer. ”Efficient and Accurate Correction of\nBeam Hardening Artifacts.”, 3rd International Congress on Image Formation\nin X-ray CT, 2014.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylechampley%2Fxrayphysics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylechampley%2Fxrayphysics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylechampley%2Fxrayphysics/lists"}