Comments (1)
For the most part the output of the scico
projector matches those of the other two projectors very closely, but there seems to be a significant difference at a boundary, as illustrated by this script:
from scico import functional, linop, loss, metric, plot
from scico.linop.xray import Parallel2dProjector, XRayTransform, astra, svmbir
from scico.optimize.admm import ADMM, LinearSubproblemSolver
from scico.util import device_info
N = 512
np.random.seed(1234)
x_gt = snp.array(discrete_phantom(Foam(size_range=[0.075, 0.0025], gap=1e-3, porosity=1), size=N))
n_projection = 45
angles = np.linspace(0, np.pi, n_projection)
projectors = {
"astra": astra.XRayTransform(x_gt.shape, 1, N, angles - np.pi / 2.0), # astra
"svmbir": svmbir.XRayTransform(x_gt.shape, 2 * np.pi - angles, N), # svmbir
"scico": XRayTransform(Parallel2dProjector((N, N), angles, det_count=N)), # scico
}
y = {}
algs = ("astra", "svmbir", "scico")
for p in algs:
A = projectors[p]
y[p] = A @ x_gt
y_gt = x_gt.sum(axis=1)
fig, ax = plot.plot(np.vstack([y_gt] + [y[p][0] for p in algs]).T,
lgnd=("row sum",) + algs)
ax.set_xlim((-0.5, 2))
ax.set_ylim((-5, 60))
input()
from scico.
Related Issues (20)
- Operator initialization failure
- Scaling of `FiniteDifference` linear operator broken
- Incorrect handling of functions with no return value in `scico.numpy`
- Potential issues in `scico.solver`
- Misleading extension on flax data files
- Updates to `scico.flax` needed due to changes in `orbax-checkpoint` API
- Inappropriate contstruction of `BlockArray` by `scico.numpy.ones`
- Revisit mechanism supporting math operations involving `LinearOperator` objects HOT 1
- Reduce code duplication in LinOp tests
- Problem with custom denoiser in ADMM HOT 8
- Incompatibility with most recent version of `orbax-checkpoint` HOT 1
- GitHub RST rendering appears to have changed HOT 1
- `RuntimeWarning` when using `ray`
- List submodules at top of API pages
- ADMM's CircularConvolveSolver not using all the parameters specified
- Interface to ASTRA FBP broken on GPU devices
- Test failure in `scico.jax` with latest `jax` version 0.4.29 HOT 1
- module 'scipy.linalg' has no attribute 'tril' HOT 3
- Incorrect parameter descriptions for `linop.xray.Parallel2dProjector.__init__`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scico.