Skip to content
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

Add a jax-based X-ray projector #433

Merged
merged 14 commits into from
Sep 27, 2023
Merged

Add a jax-based X-ray projector #433

merged 14 commits into from
Sep 27, 2023

Conversation

Michael-T-McCann
Copy link
Contributor

For now, it's the simplest (2D, not very configurable) example. Extension to 3D slice-by-slice should be straightforward.

The structure of the code requires input. I designed this so that the projector could easily be cut and pasted outside of SCICO if desired.

Timing versus ASTRA is encouraging, see ct_projector_comparison.py.

@codecov
Copy link

codecov bot commented Jul 28, 2023

Codecov Report

Merging #433 (3757233) into main (6fe8536) will decrease coverage by 1.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #433      +/-   ##
==========================================
- Coverage   94.41%   93.32%   -1.08%     
==========================================
  Files          86       87       +1     
  Lines        5470     5512      +42     
==========================================
- Hits         5164     5144      -20     
- Misses        306      368      +62     
Flag Coverage Δ
unittests 93.32% <100.00%> (-1.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
scico/linop/__init__.py 100.00% <100.00%> (ø)
scico/linop/_xray.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

from ._linop import LinearOperator


class XRayProject(LinearOperator):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming is not consistent with existing CT projector classes: worth discussion.

Copy link
Contributor Author

@Michael-T-McCann Michael-T-McCann Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussion: RadonTransform here, change the others in a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New discussion: XRayTransform

scico/linop/_xray.py Outdated Show resolved Hide resolved
@Michael-T-McCann Michael-T-McCann merged commit 085bbcc into main Sep 27, 2023
16 of 17 checks passed
@Michael-T-McCann Michael-T-McCann deleted the mike/2D_CT_projector branch September 27, 2023 18:56
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

Successfully merging this pull request may close these issues.

2 participants