dmpelt / foam_ct_phantom

A Python package for generating foam-like phantoms for CT.
MIT License
18 stars 5 forks source link

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

Build Status Build status

foam_ct_phantom

Example image

A Python package for generating foam-like phantoms for CT.

If you use this code in a publication, we would appreciate it if you would refer to:

Development of this code is supported by Centrum Wiskunde & Informatica (CWI), with financial support provided by The Netherlands Organisation for Scientific Research (NWO), project number 016.Veni.192.235.

Installation

To install this code in a conda environment, run:

conda install -c conda-forge foam_ct_phantom

In other environments, the code can be installed by running:

python setup.py install

The code requires the following Python modules: numpy, scipy, tqdm, h5py, psutil, numba, sortedcollections, pathlib2. For compiling the code, the scikit-build module is required.

To run on GPU (only for faster cone-beam projection generation), a CUDA-capable GPU must be present and CUDA drivers must be installed. In addition, please make sure that the version of the cudatoolkit package installed by conda matches the CUDA version of your drivers. Specific versions of cudatoolkit can be installed by running (where 'X.X' is the CUDA version, e.g. '10.0'):

conda install cudatoolkit=X.X