dicom-decompress-0.2.0
توضیحات
Minimal command-line tool for decompressing DICOM files with compressed pixel data.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dicom-decompress-0.2.0 |
| نام | dicom-decompress |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Karl Sjöstrand |
| ایمیل نویسنده | karl.sjostrand@exini.com |
| آدرس صفحه اصلی | https://github.com/exini/dicom-decompress |
| آدرس اینترنتی | https://pypi.org/project/dicom-decompress/ |
| مجوز | - |
# 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
```bash
pip install dicom-decompress
```
This will install the terminal command `dicom-decompress` in your environment.
Some transfer syntaxes need the c++ library [GDCM](http://gdcm.sourceforge.net/) installed. Install this by
```bash
conda install gdcm -c conda-forge
```
See [here](https://docs.conda.io/projects/continuumio-conda/en/latest/user-guide/install/index.html#) on how to install
conda.
To decompress a single file run
```bash
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:
```bash
dicom-decompress --transcode in.dcm out.dcm
```
To decompress multiple files in-place run e.g.
```bash
find . -name "*.dcm" -exec echo {} \; -exec dicom-decompress --transcode {} {} \;
```
### Dependencies
* [numpy](https://pypi.org/project/numpy/)
* [pydicom](https://pypi.org/project/pydicom/)
## Development
Update your `.pypirc` file in your home directory to include
```buildoutcfg
index-servers =
pypi
<your other servers...>
[pypi]
repository: https://upload.pypi.org/legacy/
username: <your pypi username>
...
```
* **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/*`
نیازمندی
| مقدار | نام |
|---|---|
| ==1.20.1 | numpy |
| ==2.1.2 | pydicom |
| ==0.35.1 | wheel |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl dicom-decompress-0.2.0:
pip install dicom-decompress-0.2.0.whl
نصب پکیج tar.gz dicom-decompress-0.2.0:
pip install dicom-decompress-0.2.0.tar.gz