Skip to main content

A lightning DICOM Parser

Project description

GitHub Liscence PyPi Download Pypi version

DCM-Parser

A effecient tool for extract dicom meta data from files.

This tool offers:

  • convert dicom to png (if pixel array is 2D) / mp4 (3D)
  • extract all meta data (dicom header) to a single csv file
  • examize corrupted files and files with missing values
  • multi-thread speed up exact HUNDREDS files in seconds

Installation

pip install -r requirements.txt
pip install dcm-parser

Usage

ONE line for everything!

from dcm_parser import batch_extraction

batch_extraction(source_dir=[YOUR_SOURCE_DIR], dest_dir=[YOUR_TARGET_DIR], save_img=True)

How to cite this work

If you find this git repo useful, please consider citing it using the snippet below:

@misc{DCM-parser,
    author={Le Peng},
    title={DCM-parser: A Lightning DICOM Parser},
    howpublished={\url{https://github.com/PL97/DICOM_Parser}},
    year={2022}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcm_parser-0.2.4.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page