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 caveat on 3D X-ray projector #554

Merged
merged 3 commits into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scico/linop/xray/_xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ def _calc_weights(
class XRayTransform3D(LinearOperator):
r"""General-purpose, 3D, parallel ray X-ray projector.

This projector approximates cubic voxels projecting onto
rectangular pixels and provides a back projector that is the exact
adjoint of the forward projector. It is written purely in JAX,
allowing it to run on either CPU or GPU and minimizing host copies.

Warning: This class is experimental and may be up to ten times slower
than :class:`scico.linop.xray.astra.XRayTransform3D`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps add some positive aspects, e.g. "It is expected to be useful for small problems as, unlike :class:scico.linop.xray.astra.XRayTransform3D, it can be run on both CPU and GPU, and the forward and adjoint transforms are differentiable." [The differentiable claim should be confirmed before inclusion!]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Differentiable wrt to x, definitely, but so is scico.linop.xray.astra.XRayTransform3D in the way we've wrapped it. I'm not sure about differentiable wrt to the angles. I'd like to call that out of scope for this PR.

How about

This projector approximates cubical voxels projecting onto rectangular pixels and provides a back projector that is the true adjoint of the forward projector. It is written purely in JAX, allowing it to run on either CPU or GPU and minimizing host copies.

Warning: This class is experimental and may be up to ten times slower than scico.linop.xray.astra.XRayTransform3D.


For each view, the projection geometry is specified by an array
with shape (2, 4) that specifies a :math:`2 \times 3` projection
matrix and a :math:`2 \times 1` offset vector. Denoting the matrix
Expand Down
Loading