conebeam_projector
This is the CONRAD cone beam projector ported to pycuda.
Install
pip install conebeam-projector
Or from this repo:
pip install -e .
Usage
import pyconrad.autoinit
import pyconrad.config
import pycuda.gpuarray as gpuarray
import conebeam_projector
from edu.stanford.rsl.conrad.phantom import NumericalSheppLogan3D
phantom = np.array(NumericalSheppLogan3D(
*pyconrad.config.get_reco_size()).getNumericalSheppLoganPhantom(), np.float32)
pyconrad.imshow(phantom, "phantom")
projector = conebeam_projector.CudaProjector()
sino = gpuarray.zeros(pyconrad.config.get_sino_shape(), np.float32)
projector.forward_project_cuda_raybased(phantom, sino, use_maximum_intensity_projection=False)
pyconrad.imshow(sino, "Sinogram")
backprojection = projector.backProjectPixelDrivenCuda(sino)
pyconrad.imshow(backprojection, "backprojection")
Configuration
Configuration of the projector geometry is done by (py)CONRAD.
The first time you use it CONRAD will suggest you to create a global Conrad.xml in your home directory which stores all configuration options.
You can launch conrad from bash command line to get a GUI loaded.
You can set the configuration programmatically via
import pyconrad.autoinit # launches JVM
import pyconrad.config
this_is_the_configuration_obj = pyconrad.config.get_conf()
This will give you a instance of CONRAD’s edu.stanford.rsl.conrad.utils.Configuration class.
Metadata
Release files for conebeam-projector 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conebeam_projector-0.1.2.tar.gz | 21.7 kB | Without provenance | Details for conebeam_projector-0.1.2.tar.gz |
Release files / conebeam_projector-0.1.2.tar.gz
| Download URL | conebeam_projector-0.1.2.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e6aa4b2fe1b956eec9bccc27130a4b4c8d157a9f0eb8917ffb136b597ab5d02
|
|
BLAKE2b-256 checksum How to use checksums |
88088cb5f98b08aced37ea3ab1a0168c2202d6171aef7c4e4e9883c0164333a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.2
|
Security for conebeam-projector 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.