dicom-image-tools-23.3.0
توضیحات
Python package for managing DICOM images from different modalities
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dicom-image-tools-23.3.0 |
| نام | dicom-image-tools |
| نسخه کتابخانه | 23.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Josef Lundman |
| ایمیل نویسنده | josef@lundman.eu |
| آدرس صفحه اصلی | https://github.com/BwKodex/dicomimagetools |
| آدرس اینترنتی | https://pypi.org/project/dicom-image-tools/ |
| مجوز | MIT |
[](https://github.com/BwKodex/dicomimagetools/actions/workflows/python-package.yml) [](https://codecov.io/gh/BwKodex/dicomimagetools)
# Dicom Image Tools
The dicom image tools package was created for giving a framework handling DICOM image data. Adding functionality often used for programmatic image analysis.
The package is still in early development and more features will be added.
# Install Dicom Image Tools
Install using pipenv by running:
``
$ pipenv install dicom-image-tools
``
Install using pip by running:
``
$ pip install dicom-image-tools
``
Only **Python 3.10+** is supported.
See project wiki for more detailed documentation
# Usage
When you've installed the package you import it as any other package using
```python
import dicom_image_tools
```
## Importing DICOM images
There are two functions for importing DICOM images, ``import_dicom_file(file: pathlib.Path)`` and ``import_dicom_from_folder(folder: pathlib.Path, recursively: bool = True)``.
The latter function has an optional input argument for specifying if the folder given should be searched for DICOM files recursively, default = ``True``
Both will return the image/-s in ``DicomStudy`` objects, the ``import_dicom_from_folder`` function returns a dictionary with the _Study Instance UID_ as the _key_ and the corresponding ``DicomStudy`` object as _value_.
You can then add additional files to the ``DicomStudy`` object through the ``DicomStudy.add_file`` which takes the file path as a ``pathlib.Path`` object as input.
The ``DicomStudy.Series`` is a list of all series belonging to the study that has been imported. Each ``DicomStudy.Series`` item is an object containing the image/image volume and metadata for each image. The image/image volume is accessed through the ``ImageVolume`` attribute of the ``DicomStudy.Series`` item, and the metadata in the ``CompleteMetadata`` attribute.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.3.1 | pydicom |
| >=1.24.0 | numpy |
| >=0.17.2 | scikit-image |
| >=1.9.3 | scipy |
| >=5.11.0 | plotly |
| >=3.0.20 | python-gdcm |
نحوه نصب
نصب پکیج whl dicom-image-tools-23.3.0:
pip install dicom-image-tools-23.3.0.whl
نصب پکیج tar.gz dicom-image-tools-23.3.0:
pip install dicom-image-tools-23.3.0.tar.gz