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. Optionally, ff photometric
interpretation is one of YBR_FULL
, YBR_FULL_422
, PALETTE COLOR
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 attempt transcoding for non
monochrome or rgb images add the --transcode
flag:
dicom-decompress --transcode in.dcm out.dcm
To decompress multiple files in-place run e.g.
find . -name "*.dcm" -exec echo {} \; -exec dicom-decompress --transcode {} {} \;
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/*
- Install twine:
Project details
Release history Release notifications | RSS feed
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.8.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for dicom_decompress-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a39cb8de6f88c9b7935dcce0c0a0c3d220d6438bf48bae5bbd77f831023f0f |
|
MD5 | 683c0179edd0bcdaf3b2d5b268f44f2f |
|
BLAKE2b-256 | 3701d28cf2b31543b584e27ba04cbb8e193211cb1aaaa73cd504be1683eb7db6 |