Giter Club home page Giter Club logo

lung_perfusion's Introduction

Script for lung segmentation and lobar fractional iodine calculation (batch processing)

Accompanying Jupyter notebook for the research article:

Strotzer QD, Heidemanns S, Mayr V, Stuerzl R, Meiler S, Schmidt D, Blaas S, Grosse J, Hellwig D, Stroszczynski C, Hamer OW (2023) Head-to-Head Comparison of Dual-Source and Split-Beam Filter Multi-Energy CT versus SPECT/CT for Assessing Lobar Lung Perfusion in Emphysema. Radiology: Cardiothoracic Imaging. https://doi.org/10.1148/ryct.220273

Provided data is structured as described below, DICOM slices are loaded, lobar segmentation is applied, and lobar volume and perfusion fraction are calculated for each case stored in cases.txt. Results are saved in tabular format as results.xlsx.

Prerequisites:

  • SimpleITK
  • numpy
  • pandas
  • lungmask
  • os

Args:

  • cases.txt: a text file containing case ids (one per line)
  • for each case, a folder containing a structural chest CT (one DICOM file per slice) and an equally spaced dual-energy-CT-derived iodine map (e.g., exported from syngo.via CT Dual Energy)

Output:

  • caseID_segmentation.nii.gz
  • caseID_backdrop.nii.gz
  • caseID_iodine_map.nii.gz
  • results.xlsx

Data Structure:

main_directory/
├── caseID_01/
│   ├── backdrop/ # Contains DICOM-files (one per slice)     
│   └── iodine_map/ # Contains DICOM-files (one per slice)   
├── caseID_02/
│   ├── ...      
...    
└── cases.txt     

License:

__author__ = "Quirin D. Strotzer"
__license__ = "Apache License 2.0"
__version__ = "1.0"
__email__ = "[email protected]"

Cite as:

Strotzer QD, Heidemanns S, Mayr V, Stuerzl R, Meiler S, Schmidt D, Blaas S, Grosse J, Hellwig D, Stroszczynski C, Hamer OW (2023) Head-to-Head Comparison of Dual-Source and Split-Beam Filter Multi-Energy CT versus SPECT/CT for Assessing Lobar Lung Perfusion in Emphysema. Radiology: Cardiothoracic Imaging. https://doi.org/10.1148/ryct.220273

lung_perfusion's People

Contributors

qstro avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.