This repository contains example code for the paper, "Radiation Image Reconstruction and Uncertainty Quantification Using a Gaussian Process Prior." The package imager can be used for image reconstruction and uncertainty quantification methods presented in the paper. The included notebook demonstrates an example measurement scenario where an anisotropic Gaussian source and a ring-shaped source distribution are reconstructed in a single detector mapping.
To install in an editable mode, use
pip install -e .The package imager contains sevaral modules useful for single detector mapping problems.
detector.pycontains a class,SphericalDetectorfor simulating a sinlge spherical detector (i.e., isotropic response) with a custom intrinsic efficiency.path.pyinclude two classes:WalkingPathandRasterPathfor random walking path and raster path simulation.source.pyfor various distributed source classes, such asGaussianSourceandRingGaussianSource.scenario.pyis used to hold a detector, a path and source objects. Then aScenarioobject computes the system matrix of a measurement sceanrio. A sceanario object can also be used to plot a grount truth source distribution and count measurement.imager.pycontains theImagerclass, which is primarily for image reconstruction and uncertainty quantification. The class provides the maximum likelihood expectation maximization (MLEM) and Gaussian Process Prior (GPP) image reconstruction methods. A The Bayesian uncertainty quantification using the Laplace approximation and preconditioned Crank-Nikolson MCMC.utilities.pyprovides some useful functions.
The notebook file notebooks/example_1.ipynb shows how these different classes can be set up and used for image reconstruction and uncertainty quantificaiton.