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 pixel data will be transcoded to RBG.

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.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dicom_decompress-0.0.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file dicom-decompress-0.0.4.tar.gz.

File metadata

  • Download URL: dicom-decompress-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

File hashes

Hashes for dicom-decompress-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5b59b5c7acd6100d29fb2cf6f877890bfadb5bdac3865d9f6073ba7e4759ed9a
MD5 ce4594f933f6120283ccfd6719f95c2e
BLAKE2b-256 30c0ec46fcd052746f9bda1310a83da39e00dd3b0443340d0e229ec2b43caf85

See more details on using hashes here.

File details

Details for the file dicom_decompress-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dicom_decompress-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8

File hashes

Hashes for dicom_decompress-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06c5bc3f4dea4cd009feca7765c9e5df4c2ecc6b16269eb839594685f9a8e644
MD5 11a99518bfa791a6ffbf6fb89efc795e
BLAKE2b-256 88b97123baecf8d159df98991e6b996a8c925ac41cc492a1dcf7e5a06750147d

See more details on using hashes here.

Supported by

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