medical_ct_processing

Python script for medical CT image processing

https://github.com/cspurin/medical_ct_processing

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Python script for medical CT image processing

Basic Info
  • Host: GitHub
  • Owner: cspurin
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 13.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme Citation

README.md

Medical CT image processing

The code to use is the pressure integration jupyter notebook. This has the automated centering script. The other files are for manual selection of centering parameters.

A Python library for processing and analyzing DICOM images of rock samples in CT scans.

Overview

This library provides tools for loading, processing, and analyzing DICOM images, with specific functionality for rock samples in CT scan data. It enables automated processing of scan sequences with features for:

  • Directory navigation and file management
  • DICOM file reading with metadata extraction
  • Rock sample centering and mask application
  • Multi-scan averaging and CT number calculations
  • Time-sequence analysis

Features

  • Folder and File Management: Automatically locate and process experiment folders
  • DICOM Reading: Extract image data and acquisition timestamps from DICOM files
  • Sample Centering: Apply automatic centering correction to rock samples
  • Batch Processing: Process multiple scans with consistent parameters
  • Statistical Analysis: Calculate CT numbers and other metrics from processed images
  • Time Series Support: Track changes across time-sequenced scans ## Usage

The user must provide the file path for their experiments. Then the user must define the input parameters. As an example: inputparameters = { 'CTwater': 0, 'CTair': -1000, 'coarse': 8, 'rockin': 10, 'rockout': 162, 'numslices': 166, 'Slicethick': 0.625, 'Voxsize': 0.1875, 'cr': 105 }

The script requires the seperate folders for the images where the rock is fully saturated with air, where the rock is fully saturated with water, and the flow experiments you are analyzing. It creates 3D maps: image

You can control how many scans you average over for the analysis and how many voxels you average to improve the signal to noise ratio.

Some examples of this are in the following paper: The role of injection method on residual trapping: Insights into bridging scales and heterogeneity https://doi.org/10.1016/j.advwatres.2025.104913

Impact of averaging multiple images

image

Owner

  • Name: Catherine Spurin
  • Login: cspurin
  • Kind: user
  • Company: Stanford University

Citation (CITATION.cff)

message: "If you use this software, please cite it as below."
authors:
  - family-names: "Spurin"
    given-names: "Catherine"
    orcid: "https://orcid.org/0000-0003-2396-8498"  
title: "Medical CT image processing for flow in porous rocks"
version: 1.0.0
date-released: 2025-04-14  # Today's date
url: "https://github.com/cspurin/medical_ct_processing"
repository-code: "https://github.com/cspurin/medical_ct_processing"
license: MIT  # Replace with your actual license
keywords:
  - DICOM
  - CT scan
  - rock sample
  - image processing
type: software
abstract: >-
  A Python library for processing and analyzing DICOM images 
  of rock samples in CT scans. Provides tools for loading, 
  processing, and analyzing DICOM images with specific 
  functionality for centering rock samples and analyzing CT 
  scan data across multiple scans.

GitHub Events

Total
  • Push event: 5
Last Year
  • Push event: 5