Welcome to pediatricIQphantom documentation! ============================================ This documentation provides information regarding how to download, install, and use the pediatricIQphantoms tools which are designed to simulate computed tomography (CT) image characteristics in a range of pediatric sizes ranging from newborn through adolescence. Introduction ------------ |zenodo| |tests| .. image:: ped_dl_eval_tool.png :width: 800 :align: center .. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.10064035.svg :alt: Zenodo Data Access :target: https://zenodo.org/doi/10.5281/zenodo.10064035 .. |tests| image:: https://github.com/DIDSR/pediatricIQphantoms/actions/workflows/python-package-conda.yml/badge.svg?branch=main :alt: Package Build and Testing Status :target: https://github.com/DIDSR/pediatricIQphantoms **Digital Pediatric Image Quality Phantoms for Evaluating CT Denoising Methods** are a set of digital phantoms and simulation methods for generating CT images of standard image quality (IQ) phantoms designed to match the effective diameter of pediatric patients ranging from newborns to teenagers. This repository has `tools `_ for generating `MITA-LCD phantom `_ and a multi-contrast sensitometry module similar to the CTP404 module of the `Catphan 600 phantom `_. Functions are also provided to simulate different acquisition parameters and CT scanner models. Size is one of the most important patient factors influencing CT performance as it determines the overall x-ray attenuation and noise properties. New deep learning-based denoisers have shown potential to improve image quality for a fixed radiation dose or maintain image quality while reducing dose `Brady 2023 `_. Performance Assessment consists of analytical quality assurance phantom models and interfaces to CT simulation frameworks to generate simulated CT images representing different diameters of each phantom. Installation ------------ *Installation is only required to generate new datasets*, a pregenerated dataset can be downloaded from `Zenodo `_, only proceed if you want to generate new simulated datasets. .. _version requirements: **Requirements** - `Conda `_ package manager e.g. `Miniconda `_ - Mac, Linux, or `Windows Subsystem for Linux (WSL) `_ operating systems described on the `Octave Conda Forge page `_. This package currently uses the Octave-based `Michigan Image Reconstruction Toolbox (MIRT) `_ **Installation** .. code-block:: shell git clone https://github.com/DIDSR/pediatricIQphantoms cd pediatricIQphantoms conda env create --file environment.yml conda activate pediatricIQphantoms The code block above does the following in 4 lines: 1. Git clones the `pediatricIQphantoms `_ repository 2. Changes the active directory to the repo 3. Creates a new conda environment called "pediatricIQphantoms" 4. Activates the conda environment. This makes the phantom creation library `pediatricIQphantoms` accessible in scripts (see `examples `_) and via command line calls (see `demo 01 `_ and `demo 02 `_). **Test the Installation** .. code-block:: shell pytest This runs the `unit tests `_ to verify that installation was successful. **Running Notebooks** Example `computational notebooks `_ have been provided to demonstrate - `running simulations interactively with python `_ - `viewing the simulated dataset `_ - `evaluating pediatric generalizability of denoisers `_ To run these Notebooks you will need to have `jupyter `_ installed .. code-block:: shell conda install jupyterlab -y **Running Shell Scripts** Example shell scripts and config files have been provided to demonstrate non-intertactive use of the tool to generate simulated datasets. - `Command line usage for phantom creation and simulation `_ - demonstrates command line usage including simulating different scanner configurations and acquisition protocols - run with `bash demo_01_phantom_creation.sh` - `Command line usage for more complex simulation experiments with changing acquisition parameters `_ **After Installation** Check out the :doc:`usage` section for detailed information on customizing dataset running_simulations. `Computational notebooks `_ have also been provided to demonstrate how to use `pediatricIQphantoms dataset `_ including: - `running CT simulations `_ - `using the dataset to assess denoising performance in pediatric subgroups `_ Contents -------- .. toctree:: :maxdepth: 2 :caption: Contents: usage notebooks/00_running_simulations notebooks/02_pediatric_denoising_evaluation function_reference contributing faq Developers ---------- If you'd like to contribute to the code or documentation of this project, please check out our :doc:`contributing` page. Indices and tables ================== * :ref:`genindex` * :ref:`search`