Skip to content

Interpolate a/b Parameters for ctac_to_mu Conversion Based on keV/kvP #1564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
samdporter opened this issue Feb 14, 2025 · 0 comments
Open

Comments

@samdporter
Copy link
Contributor

Description:

Currently, when using a slopes file (e.g., ct_slopes.json), the conversion from CT attenuation coefficients (ctac) to μ values relies on a hard-coded keV/kvP value.

Feature Request:

Implement interpolation for the a/b parameters in the slopes file. Specifically, for any given keV/kvP value, the conversion function should interpolate between the nearest a and b values defined in the slopes file, and then use the interpolated parameters to perform the ctac to μ conversion.

Example:

If slopes.json contains entries for keVvalues of 50 and 100 with corresponding (a, b), then for an input of 75 keV, the conversion should linearly interpolate between these pairs to compute the effective parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant