Skip to main content

Minimal command-line tool for decompressing DICOM files with compressed pixel data.

Project description

dicom-decompress

A command-line utility for decompressing DICOM files with compressed pixel data. If photometric interpretation is one of YBR_FULL, YBR_FULL_422, PALETTE COLOR an attempt to transcode pixel data to RBG will be made.

Installation

pip install dicom-decompress

This will install the terminal command dicom-decompress in your environment.

To decompress a single file run

dicom-decompress in.dcm out.dcm

where in.dcm is the file to decompress and out.dcm is the decompressed target file.

To decompress multiple files in-place run e.g.

find . -name "*.dcm" -exec echo {} \; -exec dicom-decompress {} {} \;

Dependencies

Development

  • To build: python setup.py sdist bdist_wheel (requires python3 + wheel package)
  • To install: pip install --force-reinstall dist/dicom_decompress-x.y.z-py3-none-any.whl, (x.y.z is version, see setup.py)
  • To publish
    • Install twine: pip install twine
    • Build package (cf. above)
    • Make sure it passes the twine check: twine check dist/*
    • Publish: twine upload dist/*

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

dicom-decompress-0.0.5.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

dicom_decompress-0.0.5-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

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