Repository navigation
Conversation
cell_ray(g, cu, cv, k) gives the ray of view k that ends at position (cu, cv) on the detector, in cell units (integers are cell centers, half-integers cell edges), for cone beams with flat and arc detectors and parallel beams; ray(g, i) is the case of the cell center. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One page each for images, projection geometries, operators (with masks, launch configuration and extensions), projectors and internals, instead of a single page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MultiRay wraps a detector geometry with a point strategy (RegularPoints, JitteredPoints, RandomPoints, Points) and a weighting strategy (UniformWeights, GaussianWeights); Siddon and Joseph average the line integrals of the rays of each cell with normalized weights, with the exact adjoint. The number of rays per cell is a type parameter, so one ray per cell compiles to the plain projector. Random positions come from the hash pcg4d of Jarzynski & Olano (ported under its MIT license) of cell, view, ray and seed: the same in forward and back projection, on every device and in subsets. For 2D images the projectors keep the rays in the image plane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The types for the in-plane rule sat between the docstring and the struct, so the docstring documented FullCell instead of MultiRay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
How-to "Use Several Rays per Cell" (the sampling problem of one ray per cell on a 2D example, positions on the detector, MultiRay with regular and jittered points) and explanation "Several Rays per Cell" (model, point and weighting strategies, random positions from a hash, 2D images, implementation), linked from the home page and Siddon's page; GPU timings in the benchmark README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11 +/- ##
==========================================
+ Coverage 96.30% 96.62% +0.31%
==========================================
Files 19 22 +3
Lines 542 682 +140
==========================================
+ Hits 522 659 +137
- Misses 20 23 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ray-driven projectors trace one line per detector cell, through its center. When detector cells are large compared to the voxels, these lines miss voxels between them. The back projection then covers the image unevenly, and reconstructions show patterns from the sampling. This PR adds MultiRay, a geometry wrapper that traces several rays per cell and averages their line integrals.
g = MultiRay(circular_cone_beam(...), JitteredPoints(2, 2; seed=1); weights=GaussianWeights(0.4))
op = JosephProjector(image, g)
What's included